pub unsafe extern "C" fn OH_Drawing_MatrixPostScale(
matrix: *mut OH_Drawing_Matrix,
sx: f32,
sy: f32,
px: f32,
py: f32,
)Expand description
@brief Sets matrix to backward scale by sx and sy, about a pivot point at (px, py). Given: | J K L | | sx 0 dx | Matrix = | M N O |, S(sx, sy, px, py) = | 0 sy dy | | P Q R | | 0 0 1 | where: dx = px - sx * px dy = py - sy * py sets Matrix to: | sx 0 dx | | J K L | | sxJ+dxP sxK+dxQ sxL+dx+R | S(sx, sy, px, py) * Matrix = | 0 sy dy | | M N O | = | syM+dyP syN+dyQ syO+dy*R | | 0 0 1 | | P Q R | | P Q R |
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param matrix Indicates the pointer to an OH_Drawing_Matrix object. @param sx Horizontal scale factor. @param sy Vertical scale factor. @param px Pivot on x-axis. @param py Pivot on y-axis. @since 12 @version 1.0