Skip to main content

OH_Drawing_MatrixPostTranslate

Function OH_Drawing_MatrixPostTranslate 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixPostTranslate(
    matrix: *mut OH_Drawing_Matrix,
    dx: f32,
    dy: f32,
)
Expand description

@brief Sets backward matrix to translate by (dx, dy). Given:

                | J K L |               | 1 0 dx |
       Matrix = | M N O |,  T(dx, dy) = | 0 1 dy |
                | P Q R |               | 0 0  1 |

   sets Matrix to:

                            | 1 0 dx | | J K L |   | J+dx*P K+dx*Q L+dx*R |
       T(dx, dy) * Matrix = | 0 1 dy | | M N O | = | M+dy*P N+dy*Q O+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 dx Indicates the horizontal translation. @param dy Indicates the vertical translation. @since 12 @version 1.0