共用方式為


Canvas.DrawPoints Method

Definition

Overloads

DrawPoints(Single[], Int32, Int32, Paint)

Draw a series of points.

DrawPoints(Single[], Paint)

Helper for drawPoints() that assumes you want to draw the entire array

DrawPoints(Single[], Int32, Int32, Paint)

Draw a series of points.

[Android.Runtime.Register("drawPoints", "([FIILandroid/graphics/Paint;)V", "GetDrawPoints_arrayFIILandroid_graphics_Paint_Handler")]
public virtual void DrawPoints (float[]? pts, int offset, int count, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawPoints", "([FIILandroid/graphics/Paint;)V", "GetDrawPoints_arrayFIILandroid_graphics_Paint_Handler")>]
abstract member DrawPoints : single[] * int * int * Android.Graphics.Paint -> unit
override this.DrawPoints : single[] * int * int * Android.Graphics.Paint -> unit

Parameters

pts
Single[]

Array of points to draw [x0 y0 x1 y1 x2 y2 ...]

offset
Int32

Number of values to skip before starting to draw.

count
Int32

The number of values to process, after skipping offset of them. Since one point uses two values, the number of "points" that are drawn is really (count >> 1).

paint
Paint

The paint used to draw the points

Attributes

Remarks

Draw a series of points. Each point is centered at the coordinate specified by pts[], and its diameter is specified by the paint's stroke width (as transformed by the canvas' CTM), with special treatment for a stroke width of 0, which always draws exactly 1 pixel (or at most 4 if antialiasing is enabled). The shape of the point is controlled by the paint's Cap type. The shape is a square, unless the cap type is Round, in which case the shape is a circle.

Java documentation for android.graphics.Canvas.drawPoints(float[], int, int, 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

DrawPoints(Single[], Paint)

Helper for drawPoints() that assumes you want to draw the entire array

[Android.Runtime.Register("drawPoints", "([FLandroid/graphics/Paint;)V", "GetDrawPoints_arrayFLandroid_graphics_Paint_Handler")]
public virtual void DrawPoints (float[] pts, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawPoints", "([FLandroid/graphics/Paint;)V", "GetDrawPoints_arrayFLandroid_graphics_Paint_Handler")>]
abstract member DrawPoints : single[] * Android.Graphics.Paint -> unit
override this.DrawPoints : single[] * Android.Graphics.Paint -> unit

Parameters

pts
Single[]

Array of points to draw [x0 y0 x1 y1 x2 y2 ...]

paint
Paint

The paint used to draw the points

Attributes

Remarks

Helper for drawPoints() that assumes you want to draw the entire array

Java documentation for android.graphics.Canvas.drawPoints(float[], 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