Skip to main content

OH_Drawing_PathBuildFromSvgString

Function OH_Drawing_PathBuildFromSvgString 

Source
pub unsafe extern "C" fn OH_Drawing_PathBuildFromSvgString(
    path: *mut OH_Drawing_Path,
    str_: *const c_char,
) -> bool
Expand description

@brief Parses the path represented by an SVG string. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or str is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param path Pointer to the {@link OH_Drawing_Path} object. @param str Pointer to the SVG string. @return Returns whether the SVG string is successfully parsed. true means successful; false otherwise. @since 12 @version 1.0