dosh
April 2nd, 2008, 09:21 PM
I notice there is the command cairo_image_surface_create_from_png is there an equivalent for loading JPEG or GIF files. Or is there another way like loading it via GDK and bringing it into cairo (any help much appreciated on this)
Thanks
kknd
April 2nd, 2008, 09:51 PM
I notice there is the command cairo_image_surface_create_from_png is there an equivalent for loading JPEG or GIF files. Or is there another way like loading it via GDK and bringing it into cairo (any help much appreciated on this)
Thanks
You can load a pixbuf in gdk and use it within cairo, but it is slow.
Its better to use the cairo version, like
image = Surface.createFromPng("tux.png");
cr:setSourceSurface(image, 0, 0)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.