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
- x
Type: System. . :: . .Int32%
The horizontal coordinate of the left edge of the clipping rectangle.
- y
Type: System. . :: . .Int32%
The vertical coordinate of the top edge of the clipping rectangle.
- width
Type: System. . :: . .Int32%
The width of the clipping rectangle.
- height
Type: System. . :: . .Int32%
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.