pub unsafe extern "C" fn OH_Drawing_PathGetMatrix(
path: *mut OH_Drawing_Path,
forceClosed: bool,
distance: f32,
matrix: *mut OH_Drawing_Matrix,
flag: OH_Drawing_PathMeasureMatrixFlags,
) -> boolExpand description
@brief Obtains a transformation matrix at a distance from the start point of this path. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either path or matrix is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned. If flag is not set to one of the enumerated values, OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE is returned.
@param path Pointer to the {@link OH_Drawing_Path} object. @param forceClosed Whether the path is measured as a closed path. The value true means that the path is considered closed during measurement, and false means that the path is measured based on the actual closed status. @param distance Distance from the start point. If the distance is less than 0, it is considered as 0. If the distance is greater than the path length, it is considered as the path length. @param matrix Pointer to the transformation matrix. @param flag Type of the matrix information. For details about the available options, see {@link OH_Drawing_PathMeasureMatrixFlags} . @return Returns true if the transformation matrix is obtained successfully; returns false otherwise. The possible failure cause is that path is NULL or the path length is 0. @since 12 @version 1.0