Shape.Draw(Canvas, Paint) Method

Definition

Draws this shape into the provided Canvas, with the provided Paint.

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

Parameters

canvas
Canvas

the Canvas within which this shape should be drawn

paint
Paint

the Paint object that defines this shape's characteristics

Attributes

Remarks

Draws this shape into the provided Canvas, with the provided Paint.

Before calling this, you must call #resize(float,float).

Java documentation for android.graphics.drawable.shapes.Shape.draw(android.graphics.Canvas, 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