Skip to main content

OH_Drawing_MatrixScale

Function OH_Drawing_MatrixScale 

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

@brief Sets matrix to scale by sx and sy, about a pivot point at (px, py).

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param matrix Indicates the pointer to an OH_Drawing_Matrix object. @param sx Indicates the horizontal scale factor. @param sy Indicates the vertical scale factor. @param px Indicates the pivot on x-axis. @param py Indicates the pivot on y-axis. @since 12 @version 1.0