Compartir a través de


Canvas.ClipRegion Method

Definition

Overloads

ClipRegion(Region)
Obsolete.

Intersect the current clip with the specified region.

ClipRegion(Region, Region+Op)
Obsolete.

Modify the current clip with the specified region.

ClipRegion(Region)

Caution

deprecated

Intersect the current clip with the specified region.

[Android.Runtime.Register("clipRegion", "(Landroid/graphics/Region;)Z", "GetClipRegion_Landroid_graphics_Region_Handler")]
[System.Obsolete("deprecated")]
public virtual bool ClipRegion (Android.Graphics.Region? region);
[<Android.Runtime.Register("clipRegion", "(Landroid/graphics/Region;)Z", "GetClipRegion_Landroid_graphics_Region_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member ClipRegion : Android.Graphics.Region -> bool
override this.ClipRegion : Android.Graphics.Region -> bool

Parameters

region
Region

The region to operate on the current clip, based on op

Returns

true if the resulting is non-empty

Attributes

Remarks

Intersect the current clip with the specified region. Note that unlike clipRect() and clipPath() which transform their arguments by the current matrix, clipRegion() assumes its argument is already in the coordinate system of the current layer's bitmap, and so not transformation is performed.

This member is deprecated. Unlike all other clip calls this API does not respect the current matrix. Use #clipRect(Rect) as an alternative.

Java documentation for android.graphics.Canvas.clipRegion(android.graphics.Region).

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

ClipRegion(Region, Region+Op)

Caution

deprecated

Modify the current clip with the specified region.

[Android.Runtime.Register("clipRegion", "(Landroid/graphics/Region;Landroid/graphics/Region$Op;)Z", "GetClipRegion_Landroid_graphics_Region_Landroid_graphics_Region_Op_Handler")]
[System.Obsolete("deprecated")]
public virtual bool ClipRegion (Android.Graphics.Region? region, Android.Graphics.Region.Op? op);
[<Android.Runtime.Register("clipRegion", "(Landroid/graphics/Region;Landroid/graphics/Region$Op;)Z", "GetClipRegion_Landroid_graphics_Region_Landroid_graphics_Region_Op_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member ClipRegion : Android.Graphics.Region * Android.Graphics.Region.Op -> bool
override this.ClipRegion : Android.Graphics.Region * Android.Graphics.Region.Op -> bool

Parameters

region
Region

The region to operate on the current clip, based on op

op
Region.Op

How the clip is modified

Returns

Attributes

Remarks

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