Skip to main content

OH_Drawing_MatrixPreRotate

Function OH_Drawing_MatrixPreRotate 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixPreRotate(
    matrix: *mut OH_Drawing_Matrix,
    degree: f32,
    px: f32,
    py: f32,
)
Expand description

@brief Premultiplies this matrix by a matrix that is derived from an identity matrix after it has been rotated by a given degree around the rotation point (px, py). 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 degree Angle to rotate, in degrees. A positive value indicates a clockwise rotation, and a negative value indicates a counterclockwise rotation. @param px X coordinate of the rotation point. @param py Y coordinate of the rotation point. @since 12 @version 1.0