[comp.windows.x] Clip masks in graphics contexts

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/10/89)

I didn't completely understand your message as it was written.

    I couldn't find any utility routines for combining a region with a bitmap.

Correct, there is no such utility.  However, you can combine rectangles
with a bitmap by drawing into the bitmap (or a copy of it).

   I would like the server to only draw non-zero pixels in the pattern.

By pattern you mean bitmap?  If that's the case, you could store the bitmap
as the stipple in the GC, and then use FillRectangle.  The result will be
to combine the stipple and the clip.  Is that what you wanted?