RecordingCanvas.DrawLine(Single, Single, Single, Single, Paint) 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.
Draw a line segment with the specified start and stop x,y coordinates, using the specified paint.
[Android.Runtime.Register("drawLine", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawLine(float startX, float startY, float stopX, float stopY, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawLine", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawLine : single * single * single * single * Android.Graphics.Paint -> unit
Parameters
- startX
- Single
The x-coordinate of the start point of the line
- startY
- Single
The y-coordinate of the start point of the line
- stopX
- Single
- stopY
- Single
- paint
- Paint
- Attributes
Remarks
Draw a line segment with the specified start and stop x,y coordinates, using the specified paint. Note that since a line is always "framed", the Style is ignored in the paint.
Android reference for android.graphics.RecordingCanvas.drawLine.
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.