PeachDrawing.Core
PeachDrawing.Core.ColorGlyphs.CanvasColorGlyphTarget
CanvasColorGlyphTarget.PushOutlineComplementClip(GlyphOutline, Affine2x3, Rect) Method
Restricts everything drawn until the matching PopClip() to the part of bounds<em>outside</em> the outline of one
glyph, mapped through transform (an even-odd clip of the rectangle and the outline). The painter uses it for the
Porter-Duff modes that keep what is not covered (SRC_OUT, DEST_OUT, XOR).
public bool PushOutlineComplementClip(PeachDrawing.Text.Outlines.GlyphOutline outline, PeachDrawing.Text.Outlines.Affine2x3 transform, PeachDrawing.Core.Rect bounds);
Parameters
outline GlyphOutline
the glyph outline, in design units
transform Affine2x3
design units to target space
bounds Rect
a rectangle in target space covering everything that will be drawn under the clip
Implements PushOutlineComplementClip(GlyphOutline, Affine2x3, Rect)
Returns
System.Boolean
false when the target cannot clip that way, in which case nothing was pushed and no PopClip() follows;
the default declines