다음을 통해 공유


Region Constructors

Definition

Overloads

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
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
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
top
Int32
right
Int32
bottom
Int32
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