Skip to main content

OH_Drawing_PathAddPolygon

Function OH_Drawing_PathAddPolygon 

Source
pub unsafe extern "C" fn OH_Drawing_PathAddPolygon(
    path: *mut OH_Drawing_Path,
    points: *const OH_Drawing_Point2D,
    count: u32,
    isClosed: bool,
)
Expand description

@brief Adds contour created from point array, adding (count - 1) line segments.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param path Indicates the pointer to an OH_Drawing_Path object. @param points Indicates the point array. @param count Indicates the size of point array. @param isClosed Indicates Whether to add lines that connect the end and start. @since 12 @version 1.0