Skip to main content

OH_Drawing_MatrixMapPoints

Function OH_Drawing_MatrixMapPoints 

Source
pub unsafe extern "C" fn OH_Drawing_MatrixMapPoints(
    matrix: *const OH_Drawing_Matrix,
    src: *const OH_Drawing_Point2D,
    dst: *mut OH_Drawing_Point2D,
    count: c_int,
)
Expand description

@brief Maps a source point array to a destination point array by means of matrix transformation. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If any of matrix, src, and dst is NULL or count is less than or equal to 0, ** OH_DRAWING_ERROR_INVALID_PARAMETER** is returned.

@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param src Array of source points. @param dst Array of destination points. The number of destination points must be the same as that of source points. @param count Number of source points or destination points. @since 12 @version 1.0