[Mono-devel-list] libgdiplus heading towards cairo 0.20 (or CVS)
Peter Dennis Bartok
peter at novonyx.com
Mon Apr 12 05:48:41 EDT 2004
Have you seen http://www.cairographics.org/documentation already? It's not
much, but a start. Other than that, the cairo source is pretty well
structured and straightforward.
From: "Eto" <eto at shaw.ca>
To: <mono-devel-list at lists.ximian.com>
Date: 12 April, 2004 01:58
Subject: Re: [Mono-devel-list] libgdiplus heading towards cairo 0.20 (or
>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(...);
>// draw to bitmap directly in unsafe mode
>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);
>So far, drawing to the image directly works, but drawing one image on
>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
>might even take a look to see what I can do...
>On April 12, 2004 05:26 am, Vladimir Vukicevic wrote:
>> 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
>> 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.
>> - Vlad
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list