←Select platform

PushClip Method

Summary

Specifies a rectangle to which all subsequent drawing operations are clipped. until PopClip is called.

Syntax

C#
VB
C++
public void PushClip( 
   Rect rect 
) 
  
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.D2DRendering Assembly