pub unsafe extern "C" fn OH_Drawing_MatrixCreateTranslation(
dx: f32,
dy: f32,
) -> *mut OH_Drawing_MatrixExpand description
@brief Creates an OH_Drawing_Matrix with the translation attribute. The matrix is obtained by translating the identity matrix by the distance (dx, dy).
@param dx Distance to translate on the X axis. A positive number indicates a translation towards the positive direction of the X axis, and a negative number indicates a translation towards the negative direction of the X axis. The value is a floating point number. @param dy Distance to translate on the Y axis. A positive number indicates a translation towards the positive direction of the Y axis, and a negative number indicates a translation towards the negative direction of the Y axis. The value is a floating point number. @return Returns the pointer to the OH_Drawing_Matrix object created. @since 12 @version 1.0