Re: [gtk-list] Re: Using drawRGB with selective transparencies
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Using drawRGB with selective transparencies
- Date: Mon, 5 Jul 1999 10:30:13 -0400 (EDT)
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]