Language

RecordingCanvas.DrawPoints Method

Definition

Overloads

Name Description
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.

DrawPoints(Single[], Paint)

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

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

Parameters

pts
Single[]
paint
Paint
Attributes

Remarks

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

Android reference for android.graphics.RecordingCanvas.drawPoints.

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[], Int32, Int32, Paint)

Draw a series of points.

[Android.Runtime.Register("drawPoints", "([FIILandroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawPoints(float[]? pts, int offset, int count, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawPoints", "([FIILandroid/graphics/Paint;)V", "", ApiSince=29)>]
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
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.

Android reference for android.graphics.RecordingCanvas.drawPoints.

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