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 a polygon to a path. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or points is NULL or count is 0, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param path Pointer to the existing {@link OH_Drawing_Path} object. @param points Pointer to an array that holds the vertex coordinates of the polygon. @param count Size of the array. @param isClosed Whether the path is closed. The value true means that the path is closed, and false means the opposite. @since 12 @version 1.0