Re: [gtk-list] making pictures in memory.



On Sat, 31 Jul 1999, John C Atkeson wrote:

>   What is the concept of GdkImage; can you write to one directly a pixel
> at a time without going through gdk_draw_line, etc.?

Yes. You can scribble in GdkImage->mem at will, but you have to understand
the pixel format for the display in order to use it correctly. For that, use
gdk_color_alloc_color(), or use the data in the GdkVisual directly (ie, the
mask and shift).

m.

-- 
"How wonderful! How mysterious!				Programmer
 I carry wood! I draw water!"	       Loki Entertainment Software
 - Anonymous Tao poet



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