pub unsafe extern "C" fn OH_Drawing_MatrixPreTranslate(
matrix: *mut OH_Drawing_Matrix,
dx: f32,
dy: f32,
)Expand description
@brief Premultiplies this matrix by a matrix that is derived from an identity matrix after it has been translated 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 Horizontal distance to translate. 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 Vertical distance to translate. 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