Re: [gtk-list] Pixmap problems with Gdk.



>  Hi. I have two GdkPixmaps loaded up. What I'd realy like to be able to do
>  is this: Take Pixmap1, and write it to Pixmap2. But, Pixmap1 has a bunch
>  of transparency in it, and whenever I use gdk_draw_pixmap, Pixmap2 becomes
>  transparent, and lets me see the toplevel window. I would like there to be
>  some function that writes Pixmap1, to pixmap2, and skips any transparency.

Before you draw the pixmap, set the clip mask and clip origin
appropriately with gdk_gc_set_clip_mask() and
gdk_gc_set_clip_region(), respectively.

  Federico



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