gtk - How to create a Gdk.Pixbuf from uint8[] -



gtk - How to create a Gdk.Pixbuf from uint8[] -

i have uint8[] (that got gst.mapinfo.data) represents image (i don't know format jpeg, png, etc) , i want gdk.pixbuf out of it.

the issue the pixbuf constructor take uint8[] requires lot of other image info don't have: colorspace, size, etc.

note can't utilize pixbufloader because want image created synchronously.

try wrapping uint8[] in glib.memoryinputstream , using new pixbuf.from_stream().

gtk vala gdk

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

formatting - SAS SQL Datepart function returning odd values -