Skip to main content

OH_Drawing_MatrixCreateScale

Function OH_Drawing_MatrixCreateScale 

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

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

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