Dela via


Canvas.ClipOutRect Method

Definition

Overloads

ClipOutRect(Rect)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

ClipOutRect(RectF)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

ClipOutRect(Int32, Int32, Int32, Int32)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

ClipOutRect(Single, Single, Single, Single)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

ClipOutRect(Rect)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipOutRect", "(Landroid/graphics/Rect;)Z", "GetClipOutRect_Landroid_graphics_Rect_Handler", ApiSince=26)]
public virtual bool ClipOutRect (Android.Graphics.Rect rect);
[<Android.Runtime.Register("clipOutRect", "(Landroid/graphics/Rect;)Z", "GetClipOutRect_Landroid_graphics_Rect_Handler", ApiSince=26)>]
abstract member ClipOutRect : Android.Graphics.Rect -> bool
override this.ClipOutRect : Android.Graphics.Rect -> bool

Parameters

rect
Rect

The rectangle to perform a difference op with the current clip.

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipOutRect(android.graphics.Rect).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ClipOutRect(RectF)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipOutRect", "(Landroid/graphics/RectF;)Z", "GetClipOutRect_Landroid_graphics_RectF_Handler", ApiSince=26)]
public virtual bool ClipOutRect (Android.Graphics.RectF rect);
[<Android.Runtime.Register("clipOutRect", "(Landroid/graphics/RectF;)Z", "GetClipOutRect_Landroid_graphics_RectF_Handler", ApiSince=26)>]
abstract member ClipOutRect : Android.Graphics.RectF -> bool
override this.ClipOutRect : Android.Graphics.RectF -> bool

Parameters

rect
RectF

The rectangle to perform a difference op with the current clip.

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipOutRect(android.graphics.RectF).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ClipOutRect(Int32, Int32, Int32, Int32)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipOutRect", "(IIII)Z", "GetClipOutRect_IIIIHandler", ApiSince=26)]
public virtual bool ClipOutRect (int left, int top, int right, int bottom);
[<Android.Runtime.Register("clipOutRect", "(IIII)Z", "GetClipOutRect_IIIIHandler", ApiSince=26)>]
abstract member ClipOutRect : int * int * int * int -> bool
override this.ClipOutRect : int * int * int * int -> bool

Parameters

left
Int32

The left side of the rectangle used in the difference operation

top
Int32

The top of the rectangle used in the difference operation

right
Int32

The right side of the rectangle used in the difference operation

bottom
Int32

The bottom of the rectangle used in the difference operation

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipOutRect(int, int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ClipOutRect(Single, Single, Single, Single)

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipOutRect", "(FFFF)Z", "GetClipOutRect_FFFFHandler", ApiSince=26)]
public virtual bool ClipOutRect (float left, float top, float right, float bottom);
[<Android.Runtime.Register("clipOutRect", "(FFFF)Z", "GetClipOutRect_FFFFHandler", ApiSince=26)>]
abstract member ClipOutRect : single * single * single * single -> bool
override this.ClipOutRect : single * single * single * single -> bool

Parameters

left
Single

The left side of the rectangle used in the difference operation

top
Single

The top of the rectangle used in the difference operation

right
Single

The right side of the rectangle used in the difference operation

bottom
Single

The bottom of the rectangle used in the difference operation

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Set the clip to the difference of the current clip and the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipOutRect(float, float, float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to