Skip to main content

OH_Drawing_PathAddPathWithMatrixAndMode

Function OH_Drawing_PathAddPathWithMatrixAndMode 

Source
pub unsafe extern "C" fn OH_Drawing_PathAddPathWithMatrixAndMode(
    path: *mut OH_Drawing_Path,
    src: *const OH_Drawing_Path,
    matrix: *const OH_Drawing_Matrix,
    pathAddMode: OH_Drawing_PathAddMode,
)
Expand description

@brief Transforms the points in a src path by a matrix and adds the new one to the current path with the specified adding mode. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or src is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned. If pathAddMode is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

@param path Pointer to the existing {@link OH_Drawing_Path} object. @param src Pointer to the source {@link OH_Drawing_Path} object. @param matrix Pointer to the {@link OH_Drawing_Matrix} object. A null pointer means an identity matrix. @param pathAddMode {@link OH_Drawing_PathAddMode} object. @since 12 @version 1.0