PushClip Method

Summary
Specifies a rectangle to which all subsequent drawing operations are clipped. until PopClip is called.
Syntax
C#
C++
public void PushClip( 
   Rect rect 
) 
vb[VB Syntax] 
  
Public Sub PushClip( _ 
   ByVal _rect_ As Rect _ 
) 
public: 
void PushClip(  
   Rect rect 
)  

Parameters

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

Remarks

The clipRect is transformed by the current transform set on the surface.

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.

A PushClip and PopClip pair can occur around or within a PushLayer and PopLayer, but cannot overlap.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.D2DRendering Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.