Skip to main content

OH_Drawing_PathArcTo

Function OH_Drawing_PathArcTo 

Source
pub unsafe extern "C" fn OH_Drawing_PathArcTo(
    path: *mut OH_Drawing_Path,
    x1: f32,
    y1: f32,
    x2: f32,
    y2: f32,
    startDeg: f32,
    sweepDeg: f32,
)
Expand description

@brief Draws an arc to a path.

This is done by using angle arc mode. In this mode, a rectangle that encloses an ellipse is specified first, and then a start angle and a sweep angle are specified. The arc is a portion of the ellipse defined by the start angle and the sweep angle. By default, a line segment from the last point of the path to the start point of the arc is also added.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param path Indicates the pointer to an OH_Drawing_Path object. @param x1 Indicates the x coordinate of the upper left corner of the rectangle. @param y1 Indicates the y coordinate of the upper left corner of the rectangle. @param x2 Indicates the x coordinate of the lower right corner of the rectangle. @param y2 Indicates the y coordinate of the lower right corner of the rectangle. @param startDeg Indicates the start angle, in degrees. @param sweepDeg Indicates the angle to sweep, in degrees. @since 8 @version 1.0