DrawingContext.GetClippingRectangle Method
Retrieves the clipping rectangle of the current DrawingContext object.
Namespace: Microsoft.SPOT.Presentation.Media
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)
Syntax
public void GetClippingRectangle (
ref intx,
ref inty,
ref intwidth,
ref intheight
)
Parameters
- x
[OutAttribute] The horizontal coordinate of the left edge of the clipping rectangle. - y
[OutAttribute] The vertical coordinate of the top edge of the clipping rectangle. - width
[OutAttribute] The width of the clipping rectangle. - height
[OutAttribute] 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 GetClippingRectangle method does not remove the clipping rectangle. Use the PopClippingRectangle method to remove it.
Version Information
Available in .NET Micro Framework version 2.0, 2.5
See Also
Reference
DrawingContext Class
DrawingContext Members
Microsoft.SPOT.Presentation.Media Namespace