Partager via


CRenderTarget::PushAxisAlignedClip

Removes the last axis-aligned clip from the render target. After this method is called, the clip is no longer applied to subsequent drawing operations.

void PushAxisAlignedClip(
   const CD2DRectF& rectClip,
   D2D1_ANTIALIAS_MODE mode = D2D1_ANTIALIAS_MODE_PER_PRIMITIVE
);

Parameters

  • rectClip
    The size and position of the clipping area, in device-independent pixels.

  • mode
    The 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.

Requirements

Header: afxrendertarget.h

See Also

Reference

CRenderTarget Class