[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    [gtk-list] Re: making pictures in memory.
From:       Michael K Vance <briareos () lokigames ! com>
Date:       1999-07-31 17:15:21
[Download RAW message or body]

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

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic