Partager via


Canvas.ClipRect Method

Definition

Overloads

ClipRect(Single, Single, Single, Single, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(Single, Single, Single, Single)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(Int32, Int32, Int32, Int32)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(Rect, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(RectF)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(Rect)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(RectF, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

ClipRect(Single, Single, Single, Single, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(FFFFLandroid/graphics/Region$Op;)Z", "GetClipRect_FFFFLandroid_graphics_Region_Op_Handler")]
public virtual bool ClipRect (float left, float top, float right, float bottom, Android.Graphics.Region.Op op);
[<Android.Runtime.Register("clipRect", "(FFFFLandroid/graphics/Region$Op;)Z", "GetClipRect_FFFFLandroid_graphics_Region_Op_Handler")>]
abstract member ClipRect : single * single * single * single * Android.Graphics.Region.Op -> bool
override this.ClipRect : single * single * single * single * Android.Graphics.Region.Op -> bool

Parameters

left
Single

The left side of the rectangle to intersect with the current clip

top
Single

The top of the rectangle to intersect with the current clip

right
Single

The right side of the rectangle to intersect with the current clip

bottom
Single

The bottom of the rectangle to intersect with the current clip

op
Region.Op

How the clip is modified

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(Single, Single, Single, Single)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(FFFF)Z", "GetClipRect_FFFFHandler")]
public virtual bool ClipRect (float left, float top, float right, float bottom);
[<Android.Runtime.Register("clipRect", "(FFFF)Z", "GetClipRect_FFFFHandler")>]
abstract member ClipRect : single * single * single * single -> bool
override this.ClipRect : single * single * single * single -> bool

Parameters

left
Single

The left side of the rectangle to intersect with the current clip

top
Single

The top of the rectangle to intersect with the current clip

right
Single

The right side of the rectangle to intersect with the current clip

bottom
Single

The bottom of the rectangle to intersect with the current clip

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(Int32, Int32, Int32, Int32)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(IIII)Z", "GetClipRect_IIIIHandler")]
public virtual bool ClipRect (int left, int top, int right, int bottom);
[<Android.Runtime.Register("clipRect", "(IIII)Z", "GetClipRect_IIIIHandler")>]
abstract member ClipRect : int * int * int * int -> bool
override this.ClipRect : int * int * int * int -> bool

Parameters

left
Int32

The left side of the rectangle to intersect with the current clip

top
Int32

The top of the rectangle to intersect with the current clip

right
Int32

The right side of the rectangle to intersect with the current clip

bottom
Int32

The bottom of the rectangle to intersect with the current clip

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(Rect, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(Landroid/graphics/Rect;Landroid/graphics/Region$Op;)Z", "GetClipRect_Landroid_graphics_Rect_Landroid_graphics_Region_Op_Handler")]
public virtual bool ClipRect (Android.Graphics.Rect rect, Android.Graphics.Region.Op op);
[<Android.Runtime.Register("clipRect", "(Landroid/graphics/Rect;Landroid/graphics/Region$Op;)Z", "GetClipRect_Landroid_graphics_Rect_Landroid_graphics_Region_Op_Handler")>]
abstract member ClipRect : Android.Graphics.Rect * Android.Graphics.Region.Op -> bool
override this.ClipRect : Android.Graphics.Rect * Android.Graphics.Region.Op -> bool

Parameters

rect
Rect

The rectangle to intersect with the current clip.

op
Region.Op

How the clip is modified

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(RectF)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(Landroid/graphics/RectF;)Z", "GetClipRect_Landroid_graphics_RectF_Handler")]
public virtual bool ClipRect (Android.Graphics.RectF rect);
[<Android.Runtime.Register("clipRect", "(Landroid/graphics/RectF;)Z", "GetClipRect_Landroid_graphics_RectF_Handler")>]
abstract member ClipRect : Android.Graphics.RectF -> bool
override this.ClipRect : Android.Graphics.RectF -> bool

Parameters

rect
RectF

The rectangle to intersect with the current clip.

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(Rect)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(Landroid/graphics/Rect;)Z", "GetClipRect_Landroid_graphics_Rect_Handler")]
public virtual bool ClipRect (Android.Graphics.Rect rect);
[<Android.Runtime.Register("clipRect", "(Landroid/graphics/Rect;)Z", "GetClipRect_Landroid_graphics_Rect_Handler")>]
abstract member ClipRect : Android.Graphics.Rect -> bool
override this.ClipRect : Android.Graphics.Rect -> bool

Parameters

rect
Rect

The rectangle to intersect with the current clip.

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

Java documentation for android.graphics.Canvas.clipRect(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

ClipRect(RectF, Region+Op)

Intersect the current clip with the specified rectangle, which is expressed in local coordinates.

[Android.Runtime.Register("clipRect", "(Landroid/graphics/RectF;Landroid/graphics/Region$Op;)Z", "GetClipRect_Landroid_graphics_RectF_Landroid_graphics_Region_Op_Handler")]
public virtual bool ClipRect (Android.Graphics.RectF rect, Android.Graphics.Region.Op op);
[<Android.Runtime.Register("clipRect", "(Landroid/graphics/RectF;Landroid/graphics/Region$Op;)Z", "GetClipRect_Landroid_graphics_RectF_Landroid_graphics_Region_Op_Handler")>]
abstract member ClipRect : Android.Graphics.RectF * Android.Graphics.Region.Op -> bool
override this.ClipRect : Android.Graphics.RectF * Android.Graphics.Region.Op -> bool

Parameters

rect
RectF

The rect to intersect with the current clip

op
Region.Op

How the clip is modified

Returns

true if the resulting clip is non-empty

Attributes

Remarks

Java documentation for android.graphics.Canvas.clipRect(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