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
Post a Comment