Re: [gtk-list] Re: clip origin, and **clip mask origion** ??



>> Me neither. Is the mask different for each section of the pixmap you
>> want to display ? If so, then you can to create an independent
>> mask for each one, and use gtk_window_shape_combine_mask() to shape
>> the window that you draw the pixmap in.
>
>HOW DO YOU CREATE A MASK FOR EACH ONE!!!!!!!!!!!!!!! :)

Ah yes. Well, there is a way, although it rather ugly.

Create the composite pixmap. Create a GdkBitmap of the right size (any
way you can think of). Create a GC with a depth of 2. Draw the
relevant section into the bitmap with the GC. Voila.

--p



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