共用方式為


NinePatch Constructors

Definition

Overloads

NinePatch(Bitmap, Byte[])

Create a drawable projection from a bitmap to nine patches.

NinePatch(IntPtr, JniHandleOwnership)

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

NinePatch(Bitmap, Byte[], String)

Create a drawable projection from a bitmap to nine patches.

NinePatch(Bitmap, Byte[])

Create a drawable projection from a bitmap to nine patches.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[B)V", "")]
public NinePatch (Android.Graphics.Bitmap? bitmap, byte[]? chunk);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[B)V", "")>]
new Android.Graphics.NinePatch : Android.Graphics.Bitmap * byte[] -> Android.Graphics.NinePatch

Parameters

bitmap
Bitmap

The bitmap describing the patches.

chunk
Byte[]

The 9-patch data chunk describing how the underlying bitmap is split apart and drawn.

Attributes

Remarks

Create a drawable projection from a bitmap to nine patches.

Java documentation for android.graphics.NinePatch.NinePatch(android.graphics.Bitmap, byte[]).

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

NinePatch(IntPtr, JniHandleOwnership)

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

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

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

NinePatch(Bitmap, Byte[], String)

Create a drawable projection from a bitmap to nine patches.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[BLjava/lang/String;)V", "")]
public NinePatch (Android.Graphics.Bitmap? bitmap, byte[]? chunk, string? srcName);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[BLjava/lang/String;)V", "")>]
new Android.Graphics.NinePatch : Android.Graphics.Bitmap * byte[] * string -> Android.Graphics.NinePatch

Parameters

bitmap
Bitmap

The bitmap describing the patches.

chunk
Byte[]

The 9-patch data chunk describing how the underlying bitmap is split apart and drawn.

srcName
String

The name of the source for the bitmap. Might be null.

Attributes

Remarks

Create a drawable projection from a bitmap to nine patches.

Java documentation for android.graphics.NinePatch.NinePatch(android.graphics.Bitmap, byte[], java.lang.String).

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