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