pub unsafe extern "C" fn OH_Drawing_CanvasDrawLine(
canvas: *mut OH_Drawing_Canvas,
x1: f32,
y1: f32,
x2: f32,
y2: f32,
)Expand description
@brief Draws a line segment.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param canvas Indicates the pointer to an OH_Drawing_Canvas object. @param x1 Indicates the x coordinate of the start point of the line segment. @param y1 Indicates the y coordinate of the start point of the line segment. @param x2 Indicates the x coordinate of the end point of the line segment. @param y2 Indicates the y coordinate of the end point of the line segment. @since 8 @version 1.0