pub unsafe extern "C" fn OH_Drawing_MatrixPreTranslate(
matrix: *mut OH_Drawing_Matrix,
dx: f32,
dy: f32,
)Expand description
@brief Sets forward matrix to translate by dx and dy. Given: | A B C | | 1 0 dx | Matrix = | D E F |, T(dx, dy) = | 0 1 dy | | G H I | | 0 0 1 | sets Matrix to: | A B C | | 1 0 dx | | A B Adx+Bdy+C | Matrix * T(dx, dy) = | D E F | | 0 1 dy | = | D E Ddx+Edy+F | | G H I | | 0 0 1 | | G H Gdx+Hdy+I |
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param matrix Indicates the pointer to an OH_Drawing_Matrix object. @param dx Indicates the horizontal translation. @param dy Indicates the vertical translation. @since 12 @version 1.0