Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the pixmap's image from a command #13

Open
GoogleCodeExporter opened this issue Apr 20, 2016 · 0 comments
Open

Setting the pixmap's image from a command #13

GoogleCodeExporter opened this issue Apr 20, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

disciple and vovchik

http://www.murga-linux.com/puppy/viewtopic.php?p=539783#539783
http://www.murga-linux.com/puppy/viewtopic.php?p=540188#540188

It basically amounts to adding a fill_pixmap_by_command function but with 
binary data that bash (etc.) doesn't support in shell variables, although 
vovchik has suggested using hexdump to convert the binary data into ASCII.

There's a nice piece about storing binary data within shell variables here: 
http://mywiki.wooledge.org/BashFAQ/058

Currently unscaled images are loaded using the original gtkdialog method of 
calling gtk_image_set_from_file. This function is very useful as animated gifs 
animate after loading. Scaled images call gdk_pixbuf_new_from_file_at_size and 
then gtk_image_set_from_pixbuf, but animated gifs need to be managed 
differently as I have already found out (I've yet to write support for scaled 
animated gifs). So my initial thoughts are that this is going to be a lot of 
work using gdk_pixbuf_new_from_data and maybe gdk_pixbuf_scale_simple and then 
adding support for animated gifs on top of that.

Original issue reported on code.google.com by thunor...@hotmail.com on 4 Jul 2011 at 12:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant