Udostępnij za pośrednictwem


NinePatch.Draw Method

Definition

Overloads

Draw(Canvas, Rect)

Draws the NinePatch.

Draw(Canvas, RectF)

Draws the NinePatch.

Draw(Canvas, Rect, Paint)

Draws the NinePatch.

Draw(Canvas, Rect)

Draws the NinePatch.

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_Rect_Handler")]
public virtual void Draw (Android.Graphics.Canvas? canvas, Android.Graphics.Rect? location);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_Rect_Handler")>]
abstract member Draw : Android.Graphics.Canvas * Android.Graphics.Rect -> unit
override this.Draw : Android.Graphics.Canvas * Android.Graphics.Rect -> unit

Parameters

canvas
Canvas

A container for the current matrix and clip used to draw the NinePatch.

location
Rect

Where to draw the NinePatch.

Attributes

Remarks

Draws the NinePatch. This method will use the paint returned by #getPaint().

Java documentation for android.graphics.NinePatch.draw(android.graphics.Canvas, android.graphics.Rect).

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

Draw(Canvas, RectF)

Draws the NinePatch.

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/RectF;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_RectF_Handler")]
public virtual void Draw (Android.Graphics.Canvas? canvas, Android.Graphics.RectF? location);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/RectF;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_RectF_Handler")>]
abstract member Draw : Android.Graphics.Canvas * Android.Graphics.RectF -> unit
override this.Draw : Android.Graphics.Canvas * Android.Graphics.RectF -> unit

Parameters

canvas
Canvas

A container for the current matrix and clip used to draw the NinePatch.

location
RectF

Where to draw the NinePatch.

Attributes

Remarks

Draws the NinePatch. This method will use the paint returned by #getPaint().

Java documentation for android.graphics.NinePatch.draw(android.graphics.Canvas, android.graphics.RectF).

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

Draw(Canvas, Rect, Paint)

Draws the NinePatch.

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler")]
public virtual void Draw (Android.Graphics.Canvas? canvas, Android.Graphics.Rect? location, Android.Graphics.Paint? paint);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDraw_Landroid_graphics_Canvas_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler")>]
abstract member Draw : Android.Graphics.Canvas * Android.Graphics.Rect * Android.Graphics.Paint -> unit
override this.Draw : Android.Graphics.Canvas * Android.Graphics.Rect * Android.Graphics.Paint -> unit

Parameters

canvas
Canvas

A container for the current matrix and clip used to draw the NinePatch.

location
Rect

Where to draw the NinePatch.

paint
Paint

The Paint to draw through.

Attributes

Remarks

Draws the NinePatch. This method will ignore the paint returned by #getPaint() and use the specified paint instead.

Java documentation for android.graphics.NinePatch.draw(android.graphics.Canvas, android.graphics.Rect, android.graphics.Paint).

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