pub unsafe extern "C" fn OH_Drawing_MatrixSetPolyToPoly(
matrix: *mut OH_Drawing_Matrix,
src: *const OH_Drawing_Point2D,
dst: *const OH_Drawing_Point2D,
count: u32,
) -> boolExpand description
@brief Generates a transformation matrix by setting source points and destination points. Both the number of source points and that of destination points must be in the range [0, 4]. 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. If count is less than 0 or greater than 4, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
@param matrix Pointer to the {@link OH_Drawing_Matrix} object. @param src Array of source points. If NULL is passed in, count must be 0. @param dst Array of destination points. The number of destination points must be the same as that of source points. If NULL is passed in, count must be 0. @param count Number of source points or destination points. If 0 is passed in, the matrix is set to an identity matrix. @return Returns true if matrix is constructed successfully. @since 12 @version 1.0