Skip to main content

OH_Drawing_PathOffset

Function OH_Drawing_PathOffset 

Source
pub unsafe extern "C" fn OH_Drawing_PathOffset(
    path: *mut OH_Drawing_Path,
    dst: *mut OH_Drawing_Path,
    dx: f32,
    dy: f32,
)
Expand description

@brief Translates a path by an offset along the X axis and Y axis and adds the new one to the dst 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 existing {@link OH_Drawing_Path} object. @param dst Pointer to a destination path, which is an {@link OH_Drawing_Path} object. If NULL is passed in, the result is stored in the current path. @param dx X offset. @param dy Y offset. @since 12 @version 1.0