Re: [gtk-list] gdk_imlib question



On 14 Apr, roebling@sun2.ruf.uni-freiburg.de shouted:
->  
->    Hi,
->  
->  I'm not sure if this is the right mailing list
->  for asking questions about gdk_imlib,
->  but there is no gdk_imlib list so I try
->  here.
->  Is it possible to create an gdk_imlib
->  image from a pixmap? The normal

no. I have that planned for sometime in the future. Currently I'm a bit
busy to do that. I have a pile fo things I'd liek to do... this is one
of them.

->  way seems to be to load a file using
->  gdk_imlib and then move/copy the
->  pixmap out of it. On rerendering
->  gdk_imlib uses it's own internal
->  data so changes would get lost.
->  I didn't see anyway to actually
->  save a GdkPixmap to a file
->  using gdk_imlib which seems
->  kind of strange. Or is it enough
->  to create a 24bit pixmap and create
->  a imlib image from it?
->  Also, is it possible to create an
->  empty image (and then draw
->  something into it and save it
->  afterwards)?

yes. cerate an imlib image from data - just have that data all blank
and then play wiht the 24bpp data in the imlib image. The tutorial
should make that clear.

->  Any help appreciated.
->  
->    Regards,
->  
->     Robert Roebling
->  

-- 
--------------- 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]