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

Re: Access image in a GdkPixmap




On Sun, 20 Jun 1999, Sven LUTHER wrote:
> 
> Not sure about this one, but i guess you have to get the image
> corresponding to the pixmap, (with window_get_image or something
> like that, windows and pixmap are more or less the same thing i
> think) and then use image_get_pixel on it. It will give you back the
> colormap index you got back when you allocated the color.
> 

Yep, that's exactly right. Be warned though: it is *really, really, slow*.
:-)

If you need to access pixels, you are often better off using a GdkRGB
buffer as your main representation, and then painting it to the pixmap as
needed. gdk/gdkrgb.h.

Havoc




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