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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -