DrawingContext.PushClippingRectangle Method
Pushes the specified clipping rectangle onto the current DrawingContext object.
Namespace: Microsoft.SPOT.Presentation.Media
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)
Syntax
public void PushClippingRectangle (
intx,
inty,
intwidth,
intheight
)
Parameters
- x
The horizontal coordinate of the left edge of the clipping rectangle. - y
The vertical coordinate of the top edge of the clipping rectangle. - width
The width of the clipping rectangle. - height
The height of the clipping rectangle.
Remarks
The clipping rectangle is a rectangular region that restricts the drawing surface. All drawing must be done within the clipping rectangle. Any images or parts of images that are outside the clipping rectangle do not appear on the drawing surface.
The specified clipping rectangle applies to all subsequent drawing commands, until it is removed by the PopClippingRectangle method.
Version Information
Available in .NET Micro Framework version 2.0, 2.5
See Also
Reference
DrawingContext Class
DrawingContext Members
Microsoft.SPOT.Presentation.Media Namespace