c++ - Load Gdk Pixbuf from string -
in program want use image file without being present on local hard drive.
so, used xxd -i
generate unsigned char[]
containing image data , embedded in program.
but stuck trying load gdk::pixbuf
(or gtk image) this, since dont seem find function that.
that sounds job gdk::pixbuf::create_from_data
.
note array not string, might explain why had problems finding this.
it's in "image data in memory" category isn't hidden, on other hand.
edit2: changed same function's gtkmm api wrapper, after comment.
Comments
Post a Comment