Skip to main content

OH_Drawing_CanvasSetMatrix

Function OH_Drawing_CanvasSetMatrix 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasSetMatrix(
    canvas: *mut OH_Drawing_Canvas,
    matrix: *mut OH_Drawing_Matrix,
)
Expand description

@brief Sets the matrix status for a canvas. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either canvas or matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param canvas Pointer to the {@link OH_Drawing_Canvas} object. @param matrix Pointer to the {@link OH_Drawing_Matrix} object. You can call {@link OH_Drawing_MatrixCreate} to create a matrix object. @since 12 @version 1.0