Android Guides | Samples

Android.Graphics.Drawables.NinePatchDrawable Constructor

Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources.

Syntax

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;[BLandroid/graphics/Rect;Ljava/lang/String;)V", "")]
public NinePatchDrawable (Resources res, Bitmap bitmap, Byte[] chunk, Rect padding, String srcName)

Parameters

res
bitmap
chunk
padding
srcName

Remarks

Create drawable from raw nine-patch data, setting initial target density based on the display metrics of the resources.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4