Skip to main content

OH_Drawing_MatrixPreScale

Function OH_Drawing_MatrixPreScale 

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

@brief Premultiplies a matrix by an identity matrix that scales with the factor (sx, sy) at the scale point (px, py).

@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