gdk_draw_point will draw a pixel. "gdk_draw_?" for all drawing stuff.
To get a pixel you end up dealing with the whole X windows thing.
gdk_draw_point draws on a pixmap and a pixmap is a server side thing,
meaning you do not have access to the pixmap data. That is what a
"image" all about. You can "get" a pixmap into an image and then use the
image functions. The image is client side data and the data is in device
and mode dependent format. Each mode, and or video card could be
different. No something you want to deal with.
You might look into GdkRgb. It is basically a client side RGB buffer
which can be rendered directly to any GdkDrawable. GdkRgb does not have
any drawing primitives for you to use. It's all up to you.
Stony Brook Software
nospam => stonybrk
> I want to get & then set a pixel value from a GdkPixmap, but can't
> find where to start. I see that pixels can be manipulated in a
> using gdk_image_get_pixel() & gdk_image_put_pixel(), however I need to
> manipulate an off-screen pixmap rather than a copy of the window.
> Does anybody have any idea how to do this?