Skip to main content

OH_Drawing_MatrixInvert

Function OH_Drawing_MatrixInvert 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixInvert(
    matrix: *mut OH_Drawing_Matrix,
    inverse: *mut OH_Drawing_Matrix,
) -> bool
Expand description

@brief Inverts a matrix and returns the result. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either matrix or inverse is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param inverse Pointer to the inverse {@link OH_Drawing_Matrix} object. You can call {@link OH_Drawing_MatrixCreate} to create an inverse matrix object. @return Returns true if the matrix is not nullptr and can be inverted; returns false if the matrix is nullptr or cannot be inverted. @since 12 @version 1.0