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

List:       gtk
Subject:    [gtk-list] Re: Using drawRGB with selective transparencies
From:       Havoc Pennington <rhp () zirx ! pair ! com>
Date:       1999-07-05 14:30:13
[Download RAW message or body]


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


-- 
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