Share via


ICanvas.ClipRectangle(Single, Single, Single, Single) Method

Definition

Clips an object so that only the area that's within the region of the rectangle will be visible.

public:
 void ClipRectangle(float x, float y, float width, float height);
public void ClipRectangle (float x, float y, float width, float height);
abstract member ClipRectangle : single * single * single * single -> unit
Public Sub ClipRectangle (x As Single, y As Single, width As Single, height As Single)

Parameters

x
Single

Starting x coordinate of the rectangle.

y
Single

Starting y coordinate of the rectangle.

width
Single

Width of the rectangle.

height
Single

Height of the rectangle.

Applies to