[Mono-devel-list] libgdiplus heading towards cairo 0.20 (or CVS)

Eto eto at shaw.ca
Sun Apr 11 20:40:20 EDT 2004


Great!

I am keeping a *close* watch on the development efforts in the 
Graphics.DrawImage area..  once that is working, i can start work on my 
wonderful application (porting from MS.NET/SWF to Gtk#/mono).

I've been looking at the code, but I have no clue on how to do any of the 
cairo stuff  (is there documentation anywhere ?).  

Just FYI, this is how I use the DrawImage method:

Bitmap b = new Bitmap(...);
b.LockBits(...);
// draw to bitmap directly in unsafe mode
b.UnlockBits(...);

Bitmap bDest = new Bitmap(...);
Graphics g = Graphics.FromImage(bDest);
g.DrawImage(b, new Rectangle(0, 0, bfinal.Width, bfinal.Height), 0, 0, 
size.Width, size.Height, GraphicsUnit.Pixel);
g.Dispose();

bDest.Save(...);


So far, drawing to the image directly works, but drawing one image on another 
doesn't (latest cvs asserts due to no surface assigned for the image).

Keep up the great work!   and if there's any of that cairo documentation I 
might even take a look to see what I can do...

Thanks!
Curtis.

On April 12, 2004 05:26 am, Vladimir Vukicevic wrote:
> Howdy,
>
> I'll probably commit a set of patches to bring us up to date with the
> current cairo 0.20 snapshot or CVS pattern API.  Essentially,
> cairo_set_pattern doesn't take a surface any more, it takes a pattern_t;
> and you can get a pattern_t from a surface through
> cairo_get_pattern_for_surface.  I created a
> gdip_cairo_set_surface_pattern() helper function that functions much
> like the old cairo_set_pattern and changed the code.
>
> Nothing should break with this, just wanted to send a heads up that
> Cairo 0.20 or CVS will be needed for CVS libgdiplus.
>
> Thanks,
> 	- Vlad
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list