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

Eto eto at shaw.ca
Mon Apr 12 06:35:34 EDT 2004


Yeah,  I thought there'd be a bit more documentation though..   The current 
stuff doesn't show much on what to do with images..    I guess I'll look a 
bit deeper into the source and maybe try some hacks to learn a few things 
about it.. (:

Thanks,
Curtis.

On April 12, 2004 09:48 am, Peter Dennis Bartok wrote:
> Curtis,
>
> 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.
>
> Cheers,
>   Peter
>
>
> -----Original Message-----
> 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
> CVS)
>
> >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
> >
> >_______________________________________________
> >Mono-devel-list mailing list
> >Mono-devel-list at lists.ximian.com
> >http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> _______________________________________________
> 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