Re: [gtk-list] Re: Gif pictures in widgets



On 13 May, Trog shouted:
->  
->  On 13-May-98 Johannes Keukelaar wrote:
->  > Or you could convert your gif to an xpm file. There are files in
->  > standard gtk 
->  > to load those.

dont use xpm or gif - use png. it's compressed and small (unlike the
xpm), it is able to hav 24-bit color,  loads fast, does not use
proprietary patented compression methods like gif, thus no legal
issues, and gdk_imlib can load them into a pixmap for you (with a mask)
in one command just like gtk.

http://www.labs.redhat.com/imlib/

->  Yeah, good for small images. However, the implementation is too slow
->  for big images. Fine for button sized images though. Also has the
->  advantage that you can include them into the executable. Have a look
->  at the 'buttons' and 'wheelbarrow' examples from the Tutorial.
->  
->  Tony
->  
->  
->  ---
->  E-Mail: trog@gtk.org
->  And if you wonder,
->  What I am doing,
->  As I am heading for the sink.
->  I am spitting out all the bitterness,
->  Along with half of my last drink.
->  
->  Go Bezerk! http://www.gtk.org/~trog
->  

-- 
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com       /\___ /\ ___/||\___ ____/|/\___  raster@redhat.com
Carsten Haitzler           | _ //__\\ __||_ __\\ ___|| _ /  Red Hat Advanced
218/21 Conner Drive        || // __ \\_ \ | |   \ _/_|| /   Development Labs
Chapel Hill NC 27514 USA   ||\\\/  \//__/ |_|   /___/||\\   919 547 0012 ext 282
+1 (919) 929 9443, 801 4392   For pure Enlightenmenthttp://www.rasterman.com/ 



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