[cairo] cairo_image_surface_create_from_???

Kevin Brooks kb_list at yahoo.com
Sun Mar 11 19:06:10 PDT 2007


--- Carl Worth <cworth at cworth.org> wrote:

> On Thu, 8 Mar 2007 23:50:24 -0800 (PST), Kevin
> Brooks wrote:
> > Are we going to have other image supports in the
> > future like:
> >
> > cairo_surface_t*
> cairo_image_surface_create_from_jpg
> > cairo_surface_t*
> cairo_image_surface_create_from_bmp
> > cairo_surface_t*
> cairo_image_surface_create_from_tiff
> 
> It's not very likely.
> 
> We don't want to let the number of dependencies that
> cairo has grow
> arbitrarily.
> 

Right. I don't like those dependencies as well. 


> And cairo does already allow you to create an image
> surface from a
> buffer of data with the
> cairo_image_surface_create_for_data
> function. So it is already possible to load an image
> through whatever
> means you have available and then create an image
> surface from
> it---all with code built on top of the existing
> cairo interface.
> 

I see your point. cairo_image_surface_create_for_data
is powerful if we can have an efficient image loader.

> Some people have even suggested the possibility of a
> cairo-friendly
> interface for creating such image surfaces, (perhaps
> by building on
> top of an existing full-functioned image library
> whose name I don't
> recall now).
> 
> -Carl
> 

Thanks,

Kev


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news


More information about the cairo mailing list