Canvas.DrawPatch Method
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
DrawPatch(NinePatch, Rect, Paint) |
Draws the specified bitmap as an N-patch (most often, a 9-patch. |
DrawPatch(NinePatch, RectF, Paint) |
Draws the specified bitmap as an N-patch (most often, a 9-patch. |
DrawPatch(NinePatch, Rect, Paint)
Draws the specified bitmap as an N-patch (most often, a 9-patch.
[Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDrawPatch_Landroid_graphics_NinePatch_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler", ApiSince=31)]
public virtual 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", "GetDrawPatch_Landroid_graphics_NinePatch_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler", ApiSince=31)>]
abstract member DrawPatch : Android.Graphics.NinePatch * Android.Graphics.Rect * Android.Graphics.Paint -> unit
override this.DrawPatch : Android.Graphics.NinePatch * Android.Graphics.Rect * Android.Graphics.Paint -> unit
Parameters
- patch
- NinePatch
The ninepatch object to render
- dst
- Rect
The destination rectangle.
- paint
- Paint
The paint to draw the bitmap with. May be null. Antialiasing is not supported.
- 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.
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.
[Android.Runtime.Register("drawPatch", "(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "GetDrawPatch_Landroid_graphics_NinePatch_Landroid_graphics_RectF_Landroid_graphics_Paint_Handler", ApiSince=31)]
public virtual 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", "GetDrawPatch_Landroid_graphics_NinePatch_Landroid_graphics_RectF_Landroid_graphics_Paint_Handler", ApiSince=31)>]
abstract member DrawPatch : Android.Graphics.NinePatch * Android.Graphics.RectF * Android.Graphics.Paint -> unit
override this.DrawPatch : Android.Graphics.NinePatch * Android.Graphics.RectF * Android.Graphics.Paint -> unit
Parameters
- patch
- NinePatch
The ninepatch object to render
- dst
- RectF
The destination rectangle.
- paint
- Paint
The paint to draw the bitmap with. May be null. Antialiasing is not supported.
- 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.
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.