Language

RecordingCanvas.DrawPatch Method

Definition

Overloads

Name Description
DrawPatch(NinePatch, Rect, Paint)

Draws the specified bitmap as an N-patch (most often, a 9-patch.) Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

DrawPatch(NinePatch, RectF, Paint)

Draws the specified bitmap as an N-patch (most often, a 9-patch.) Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

DrawPatch(NinePatch, Rect, Paint)

Draws the specified bitmap as an N-patch (most often, a 9-patch.) Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

[Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawPatch(Android.Graphics.NinePatch patch, Android.Graphics.Rect dst, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawPatch : Android.Graphics.NinePatch * Android.Graphics.Rect * Android.Graphics.Paint -> unit

Parameters

patch
NinePatch

The nine-patch bitmap and stretch metadata to render.

dst
Rect

The bounds used to size and position the nine-patch.

paint
Paint

The optional paint supplying bitmap-rendering attributes, or null for default rendering.

Attributes

Remarks

Draws the specified bitmap as an N-patch (most often, a 9-patch.) Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

Android reference for android.graphics.RecordingCanvas.drawPatch.

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

DrawPatch(NinePatch, RectF, Paint)

Draws the specified bitmap as an N-patch (most often, a 9-patch.) Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

[Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawPatch(Android.Graphics.NinePatch patch, Android.Graphics.RectF dst, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawPatch : Android.Graphics.NinePatch * Android.Graphics.RectF * Android.Graphics.Paint -> unit

Parameters

patch
NinePatch

The nine-patch bitmap and stretch metadata to render.

dst
RectF

The bounds used to size and position the nine-patch.

paint
Paint

The optional paint supplying bitmap-rendering attributes, or null for default rendering.

Attributes

Remarks

Draws the specified bitmap as an N-patch (most often, a 9-patch.)

Note: antialiasing is not supported, therefore Paint.ANTI_ALIAS_FLAG is ignored.

Android reference for android.graphics.RecordingCanvas.drawPatch.

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