Load a Bitmap in ImageSurface
Saeed shahbazi <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CACyWuDSALH--Z93vwfG8P6+eaveqabHiVhbnRq1B7cibQJvYRA@mail.gmail.com> |
Hi all, I'm using Mono and .Net 2 and I want to load a System.Drawing.Image image to ImageSurface. All my efforts led to fuzzy images but the one as follows: const string TmpFileName = "cairo_tmp.png"; image.Save(TmpFileName, ImageFormat.Png); var imageSurface = new ImageSurface(TmpFileName); imageSurface.Show(this.m_internalContext, x, y); imageSurface.Destroy(); However, I don't want to write it to disk and load it again. Is there any other solution? Cheers, S. -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo