Android.Graphics.NinePatch Members

The members of Android.Graphics.NinePatch are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Create a drawable projection from a bitmap to nine patches.
Create a drawable projection from a bitmap to nine patches.

Protected Constructors

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

Public Properties

[read-only]
BitmapBitmap. Returns the bitmap used to draw this NinePatch.
[read-only]
Densityint. Return the underlying bitmap's density, as per Bitmap.Density.
[read-only]
HasAlphabool. Indicates whether this NinePatch contains transparent or translucent pixels.
[read-only]
Heightint. Returns the intrinsic height, in pixels, of this NinePatch.
[read-only]
Namestring. Returns the name of this NinePatch object if one was specified when calling the constructor.
[read-only]
PaintPaint. Returns the paint used to draw this NinePatch.
[read-only]
Widthint. Returns the intrinsic width, in pixels, of this NinePatch.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Draw(Canvas, Rect)
Draws the NinePatch.
Draw(Canvas, RectF)
Draws the NinePatch.
Draw(Canvas, Rect, Paint)
Draws the NinePatch.
GetTransparentRegion(Rect) : Region
Returns a Android.Graphics.Region representing the parts of the NinePatch that are completely transparent.
static
IsNinePatchChunk(byte[]) : bool
Verifies that the specified byte array is a valid 9-patch data chunk.
SetPaint(Paint)
Sets the paint to use when drawing the NinePatch.