GetClippingRectangle Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Retrieves the clipping rectangle of the current drawing context.

Namespace:  Microsoft.SPOT.Presentation.Media
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Sub GetClippingRectangle ( _
    <OutAttribute> ByRef x As Integer, _
    <OutAttribute> ByRef y As Integer, _
    <OutAttribute> ByRef width As Integer, _
    <OutAttribute> ByRef height As Integer _
)
public void GetClippingRectangle(
    out int x,
    out int y,
    out int width,
    out int height
)
public:
void GetClippingRectangle(
    [OutAttribute] int% x, 
    [OutAttribute] int% y, 
    [OutAttribute] int% width, 
    [OutAttribute] int% height
)
member GetClippingRectangle : 
        x:int byref * 
        y:int byref * 
        width:int byref * 
        height:int byref -> unit 
public function GetClippingRectangle(
    x : int, 
    y : int, 
    width : int, 
    height : int
)

Parameters

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.

.NET Framework Security

See Also

Reference

DrawingContext Class

Microsoft.SPOT.Presentation.Media Namespace