Re: Is posible create a png surface from a png buffer read from a zip file?

Elmar Haneke <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>

Am 07.11.2015 um 23:03 schrieb KiwiLib KiwiLib:
> thanks for your
> ​ s​
> answer
> ​ s​
> . The Png_data already contains png data. I 'm
> looking for a
> ​ simple ​
> function
> ​ ​
> like
> ​ :​
>
>
> sf:=cairo_image_surface_create_from_png_buffer(PNG_data);​

perhaps you should look at source of
*cairo_image_surface_create_from_png to get another example for
callback-function.

**Or you can write your buffer to file and use that function.

Writing an callback function is neither mystic nor complex you do need
only few lines of code.

What programming language you are working with?
*
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.