Re: GdkBitmap - turning pixels OFF

2006-03-13 Thread Kent Humphries
I worked this out. For my situation I did the following: create a GdkBitmap* containing the original mask. Create a second GdkBitmap* for the inverted mask. Then create a GdkGC for inversion and draw to the inverted mask using the inversion GdkGC Code snippet: GdkBitmap *original_bitmap,

GdkBitmap - turning pixels OFF

2006-03-07 Thread Kent Humphries
Hi, I'm a relative newbie to the Gtk+/Gdk world and am having trouble with the GdkBitmap. I am creating GdkBitmaps in order to create clip masks. The mask is used for a graphics context which I then pass as an argument to gdk_draw_drawable. Basically I have two 'layers' which should be