Method PushAxisAlignedClip
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
PushAxisAlignedClip(RectFloat, AntialiasMode)
Specifies a rectangle to which all subsequent drawing operations are clipped.
void PushAxisAlignedClip(RectFloat clipRect, AntialiasMode antialiasMode)
Parameters
clipRect
RectFloatThe size and position of the clipping area, in device-independent pixels.
antialiasMode
AntialiasModeThe antialiasing mode that is used to draw the edges of clip rects that have subpixel boundaries, and to blend the clip with the scene contents. The blending is performed once when the PopAxisAlignedClip method is called, and does not apply to each primitive within the layer.
Remarks
The clipRect is transformed by the current world transform set on the render target. After the transform is applied to the clipRect
that is passed in, the axis-aligned bounding box for the clipRect is computed. For efficiency, the contents are clipped to this
axis-aligned bounding box and not to the original clipRect that is passed in.
See PushAxisAlignedClip documentation
for more details.