<div dir="ltr">Hi all,<div><br></div><div>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:</div><div><div>const string TmpFileName = "cairo_tmp.png";</div>
<div>image.Save(TmpFileName, ImageFormat.Png);</div><div>var imageSurface = new ImageSurface(TmpFileName);</div><div>imageSurface.Show(this.m_internalContext, x, y);</div><div>imageSurface.Destroy();</div><div><br></div><div>
However, I don't want to write it to disk and load it again. Is there any other solution?</div><div><br></div><div>Cheers,</div><div dir="ltr"><div><span style="font-family:Tahoma;font-size:13px">S.<br></span></div><div>
<span style="font-size:10pt;font-family:Arial,sans-serif"></span><span style="font-family:Tahoma;font-size:13px"></span></div></div>
</div></div>