Skip to main content

OH_Drawing_MatrixGetValue

Function OH_Drawing_MatrixGetValue 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixGetValue(
    matrix: *mut OH_Drawing_Matrix,
    index: c_int,
) -> f32
Expand description

@brief Obtains a matrix value of a given index, which ranges from 0 to 8. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned. If index is less than 0 or greater than 8, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.

@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param index Index, which ranges from 0 to 8. @return Returns value corresponding to index.Returns 0 if out of range. @since 12 @version 1.0