Skip to main content

OH_Drawing_MatrixSetMatrix

Function OH_Drawing_MatrixSetMatrix 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixSetMatrix(
    matrix: *mut OH_Drawing_Matrix,
    scaleX: f32,
    skewX: f32,
    transX: f32,
    skewY: f32,
    scaleY: f32,
    transY: f32,
    persp0: f32,
    persp1: f32,
    persp2: f32,
)
Expand description

@brief Sets matrix parameters for an OH_Drawing_Matrix object. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If OH_Drawing_Matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param matrix Pointer to an OH_Drawing_Matrix object. @param scaleX Scale factor on the X axis. @param skewX Skew factor on the X axis. @param transX Translation coefficient on the X axis. @param skewY Skew factor on the Y axis. @param scaleY Scale factor on the Y axis. @param transY Translation coefficient on the Y axis. @param persp0 Perspective coefficient of the X axis. @param persp1 Perspective coefficient of the Y axis. @param persp2 Perspective scale coefficient. @since 11 @version 1.0