Re: compiling pixbufs into an executable



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob Caryl <bob fis-cal com> writes:

> One of the things that I used to do in windows was include small images
> into the executable as resources to avoid having to make sure all the
> little files were included in the distribution.
>
> So far, I have not found anything in the gtkmm world that is analoguous
> to this practice.  Is there any way to do this?

Try gdk-pixbuf-csource.  It takes your image (any format) and turns it
into C source code ready to build into a GdkPixdata structure (you can
create a pixbuf from it).

I recently discovered you could load SVG images as pixbufs, so I've
now started using SVG for icons, cursors etc., since they are much
nicer to modify and scale.  You could also use gdk-pixbuf-csource to
generate code direct from SVG.


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCCogcVcFcaSW/uEgRAs1zAKCxUtQc3OL4GGMlLmzu1jpTvrdBSgCgkvkg
cAHehqFIqwYI79WrWZLoWf8=
=xkLq
-----END PGP SIGNATURE-----



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