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: examples/

And this little doodad can convert regular XPM image files to perl code suitable for dropping into your program: 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]