<div dir="ltr">thanks for your<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;display:inline">s</div> answer<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;display:inline">s</div>. The Png_data already contains png data. I 'm<br>
looking for a <div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;display:inline">simple </div>function<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;display:inline"> </div> like<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:large;display:inline">:</div><br>
<br>
sf:=cairo_image_surface_create_from_png_buffer(PNG_data);<br>
<br>
I managed to load the buffer with my own code. Something like this.<br>
<br>
dim as integer bytes<br>
dim f as file<br>
dim PNG_data as byte ptr<br>
<br>
PNG_data = allocate(100000)<br>
<br>
open "mypng.png", #f<br>
read #f, PNG_data,bytes<br>
sf:=cairo_image_surface_create_from_png_buffer(PNG_data,bytes)<br>
close #f<br>
</div>