pub unsafe extern "C" fn OH_Drawing_MatrixTranslate(
matrix: *mut OH_Drawing_Matrix,
dx: f32,
dy: f32,
)Expand description
@brief Sets a matrix as an identity matrix and translates it by a given distance (dx, dy). This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @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. @since 12 @version 1.0