Språk

Region Constructors

Definition

Overloads

Name Description
Region()

Create an empty region

Region(Rect)

Return a region set to the specified rectangle

Region(Region)

Return a copy of the specified region

Region(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Region(Int32, Int32, Int32, Int32)

Return a region set to the specified rectangle

Region()

Create an empty region

[Android.Runtime.Register(".ctor", "()V", "")]
public Region();
Attributes

Remarks

Create an empty region

Java documentation for android.graphics.Region.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

Region(Rect)

Return a region set to the specified rectangle

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;)V", "")]
public Region(Android.Graphics.Rect r);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;)V", "")>]
new Android.Graphics.Region : Android.Graphics.Rect -> Android.Graphics.Region

Parameters

r
Rect

The rectangle whose integer coverage initializes the region.

Attributes

Remarks

Return a region set to the specified rectangle

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

Region(Region)

Return a copy of the specified region

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Region;)V", "")]
public Region(Android.Graphics.Region region);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Region;)V", "")>]
new Android.Graphics.Region : Android.Graphics.Region -> Android.Graphics.Region

Parameters

region
Region

The region whose coverage is copied into the new region.

Attributes

Remarks

Return a copy of the specified region

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

Region(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Region(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Region : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Region

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

Region(Int32, Int32, Int32, Int32)

Return a region set to the specified rectangle

[Android.Runtime.Register(".ctor", "(IIII)V", "")]
public Region(int left, int top, int right, int bottom);
[<Android.Runtime.Register(".ctor", "(IIII)V", "")>]
new Android.Graphics.Region : int * int * int * int -> Android.Graphics.Region

Parameters

left
Int32

The inclusive left edge of the rectangle.

top
Int32

The inclusive top edge of the rectangle.

right
Int32

The exclusive right edge of the rectangle.

bottom
Int32

The exclusive bottom edge of the rectangle.

Attributes

Remarks

Return a region set to the specified rectangle

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