Re: pixmap



Thomas Amsler <tpamsler ucdavis edu> writes:
I can access that data in a pixbuf with "gdk_pixbuf_get_pixels(pixbuf)".
Is there a similar function to do this for a pixmap? If not, how can I
access a pixmap's data?

The pixmap is across a socket on the X server, it's a remote object
not in your application's address space. So getting the pixels is
sloooow and in general if you're doing that using a pixmap is a
mistake (though there are exceptions to the rule).

That said, I think gdk-pixbuf has a get_from_drawable() function to
get them as a pixbuf.

Havoc




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