Re: [gtk-list] Re: Using drawRGB with selective transparencies




On Mon, 5 Jul 1999 robert_gasch@peoplesoft.com wrote:
> 
> Is there any easy way to convert an aleady existing (and
> drawn-on) drawing area (with a backing pixmap) into a RGB buffer
> so the RGB buffer contains the picture you've drawn? Just thinking
> about it, it would seem that the (backing) pixmap data should
> be convertable to a RGB buffer without too many problems, but I've
> never tried this (and haven't even looked at it).
> 

There is, but it's hard. Look at gdk_imlib_create_image_from_drawable() in
imlib/gdk_imlib/utils.c. Should give you the idea. 

Of course this is slow, since you have to suck the pixels back from the
server. You're better off keeping a client-side RGB buffer (or if that's
too large, doing a GnomeCanvas type of thing).

Havoc




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