NinePatchDrawable Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NinePatchDrawable(NinePatch) |
Obsolete.
Create drawable from existing nine-patch, not dealing with density. |
NinePatchDrawable(Resources, NinePatch) |
Create drawable from existing nine-patch, setting initial target density based on the display metrics of the resources. |
NinePatchDrawable(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
NinePatchDrawable(Bitmap, Byte[], Rect, String) |
Obsolete.
Create drawable from raw nine-patch data, not dealing with density. |
NinePatchDrawable(Resources, Bitmap, Byte[], Rect, String) |
Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources. |
NinePatchDrawable(NinePatch)
Caution
deprecated
Create drawable from existing nine-patch, not dealing with density.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/NinePatch;)V", "")]
[System.Obsolete("deprecated")]
public NinePatchDrawable (Android.Graphics.NinePatch patch);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/NinePatch;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Graphics.Drawables.NinePatchDrawable : Android.Graphics.NinePatch -> Android.Graphics.Drawables.NinePatchDrawable
Parameters
- patch
- NinePatch
- Attributes
Remarks
Create drawable from existing nine-patch, not dealing with density.
This member is deprecated. Use #NinePatchDrawable(Resources, NinePatch)
to ensure that the drawable has correctly set its target density.
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
NinePatchDrawable(Resources, NinePatch)
Create drawable from existing nine-patch, setting initial target density based on the display metrics of the resources.
[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/NinePatch;)V", "")]
public NinePatchDrawable (Android.Content.Res.Resources? res, Android.Graphics.NinePatch patch);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/NinePatch;)V", "")>]
new Android.Graphics.Drawables.NinePatchDrawable : Android.Content.Res.Resources * Android.Graphics.NinePatch -> Android.Graphics.Drawables.NinePatchDrawable
Parameters
- res
- Resources
- patch
- NinePatch
- Attributes
Remarks
Create drawable from existing nine-patch, setting initial target density based on the display metrics of the resources.
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
NinePatchDrawable(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected NinePatchDrawable (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.NinePatchDrawable : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.NinePatchDrawable
Parameters
- 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
NinePatchDrawable(Bitmap, Byte[], Rect, String)
Caution
deprecated
Create drawable from raw nine-patch data, not dealing with density.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V", "")]
[System.Obsolete("deprecated")]
public NinePatchDrawable (Android.Graphics.Bitmap? bitmap, byte[]? chunk, Android.Graphics.Rect? padding, string? srcName);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Graphics.Drawables.NinePatchDrawable : Android.Graphics.Bitmap * byte[] * Android.Graphics.Rect * string -> Android.Graphics.Drawables.NinePatchDrawable
Parameters
- bitmap
- Bitmap
- chunk
- Byte[]
- padding
- Rect
- srcName
- String
- Attributes
Remarks
Create drawable from raw nine-patch data, not dealing with density.
This member is deprecated. Use #NinePatchDrawable(Resources, Bitmap, byte[], Rect, String)
to ensure that the drawable has correctly set its target density.
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
NinePatchDrawable(Resources, Bitmap, Byte[], Rect, String)
Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources.
[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V", "")]
public NinePatchDrawable (Android.Content.Res.Resources? res, Android.Graphics.Bitmap? bitmap, byte[]? chunk, Android.Graphics.Rect? padding, string? srcName);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V", "")>]
new Android.Graphics.Drawables.NinePatchDrawable : Android.Content.Res.Resources * Android.Graphics.Bitmap * byte[] * Android.Graphics.Rect * string -> Android.Graphics.Drawables.NinePatchDrawable
Parameters
- res
- Resources
- bitmap
- Bitmap
- chunk
- Byte[]
- padding
- Rect
- srcName
- String
- Attributes
Remarks
Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources.
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.