[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: transparent pixmaps and drawables...
- From: Havoc Pennington <rhp zirx pair com>
- To: gtk-app-devel-list redhat com
- Subject: Re: transparent pixmaps and drawables...
- Date: Sun, 6 Jun 1999 17:57:01 -0400 (EDT)
On Sun, 6 Jun 1999, Thomas Niederreiter wrote:
>
> anybody knows how to draw a transparent pixmap with
> gdk_draw_pixmap to a drawable?
> Its works fine, but all transparent-parts are drawn with the background-color
> instead leaving it free. Also the draw_pixmap command does not support
> any masks...so it cant work this way, right?
>
> Ok..any hints how to get my nice pixmap drawn correctly?
>
You want to set the clip mask and clip origin of your graphics context. A
quick look through gdk.h will reveal the proper functions. The clip origin
should be the same as the pixmap coordinates, so the mask and the pixmap
are lined up.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]