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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -