Skip to main content

OH_Drawing_PathCopy

Function OH_Drawing_PathCopy 

Source
pub unsafe extern "C" fn OH_Drawing_PathCopy(
    path: *mut OH_Drawing_Path,
) -> *mut OH_Drawing_Path
Expand description

@brief Creates a copy of the {@link OH_Drawing_Path} object. 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. @return Pointer to the copy of the {@link OH_Drawing_Path} object. @since 12 @version 1.0