Skip to main content

OH_Drawing_PathGetLength

Function OH_Drawing_PathGetLength 

Source
pub unsafe extern "C" fn OH_Drawing_PathGetLength(
    path: *mut OH_Drawing_Path,
    forceClosed: bool,
) -> f32
Expand description

@brief Obtains the length of a path. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If path is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param path Pointer to the {@link OH_Drawing_Path} object. @param forceClosed Whether the path is measured as a closed path. true means that the path is forcibly considered as a closed path; false means that the path is measured depending on whether it is a closed path. @return Returns the length of the path. @since 12 @version 1.0