[cairo] Using gimp c file image

gurnett at telia.com gurnett at telia.com
Thu Dec 17 21:59:26 PST 2009

Perfect. Just what I was looking for


>----Ursprungligt meddelande----
>Från: daniel.amelang at gmail.com
>Datum: 2009-12-18 02:40
>Till: "Dominic Lachowicz"<domlachowicz at gmail.com>
>Kopia: "gurnett at telia.com"<gurnett at telia.com>, <cairo at cairographics.org>
>Ärende: Re: [cairo] Using gimp c file image
>On Thu, Dec 17, 2009 at 2:34 PM, Dominic Lachowicz
><domlachowicz at gmail.com> wrote:
>> Hi Michael,
>> create_from_png() loads the PNG from a file on disk.
>> create_from_stream() allows you to supply your own read func. So, you
>> could feed it in data from memory. Or from a URL. Or something like
>> that. Cairo will repeatedly call the read_func to request the next N
>> bytes of data from your resource.

More information about the cairo mailing list