Skip to main content

OH_Drawing_MatrixPostScale

Function OH_Drawing_MatrixPostScale 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixPostScale(
    matrix: *mut OH_Drawing_Matrix,
    sx: f32,
    sy: f32,
    px: f32,
    py: f32,
)
Expand description

@brief Post multiplies a matrix by an identity matrix that scales with the factor (sx, sy) at the scale point (px, py). 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.

@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param sx Scale factor on the X axis. If a negative number is passed in, the matrix is mirrored around y = px before being scaled. The value is a floating point number. @param sy Scale factor on the Y axis. If a negative number is passed in, the matrix is mirrored around x = py before being scaled. The value is a floating point number. @param px X coordinate of the scale point. @param py Y coordinate of the scale point. @since 12 @version 1.0