Re: Images from data




On Oct 18, 2006, at 10:36 PM, Matthew Braid wrote:

So, in Gtk2, what's the easiest way of defining/using inline image data?

Depends on what you have, and what you consider easy.  :-)

This example (also in the source tarball) shows the various ways to create inline images:

http://gtk2-perl.cvs.sourceforge.net/gtk2-perl/gtk2-perl-xs/Gtk2/ examples/inline-images.pl?revision=1.1&view=markup


And this little doodad can convert regular XPM image files to perl code suitable for dropping into your program:

http://gtk2-perl.cvs.sourceforge.net/gtk2-perl/gtk2-perl-xs/helpers/ xpm2perl?revision=1.1&view=markup


--
"the ternary operator makes it a bit less ugly."
    -- kaffee




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]