From 37b204a4356309a85f658e915a2fe865c97d0a1c Mon Sep 17 00:00:00 2001 From: qsftw Date: Tue, 17 Jun 2025 04:51:16 +0000 Subject: [PATCH] fix drawing path description Signed-off-by: qsftw Change-Id: I2767eecf0987f3a78381e6f4e81702a92e822779 --- graphic/graphic_2d/native_drawing/drawing_path.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_path.h b/graphic/graphic_2d/native_drawing/drawing_path.h index 1f4e18a2f..1edaf0486 100644 --- a/graphic/graphic_2d/native_drawing/drawing_path.h +++ b/graphic/graphic_2d/native_drawing/drawing_path.h @@ -775,8 +775,8 @@ bool OH_Drawing_PathGetMatrix(OH_Drawing_Path* path, bool forceClosed, * @param count Returns with the size of array. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path, vals or count is nullptr, or acceptableError is - * less than 0. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or count is nullptr. + * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if acceptableError is less than 0. * @since 20 * @version 1.0 */ @@ -795,8 +795,9 @@ OH_Drawing_ErrorCode OH_Drawing_PathApproximate(OH_Drawing_Path* path, float acc * @param interpolatedPath Indicates the pointer to an OH_Drawing_Path object to store the result. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other, success or interpolatedPath is - * nullptr, or weight is outside the range [0, 1]. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other, success or interpolatedPath is + * nullptr. + * Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if weight is outside the range [0, 1]. * @since 20 * @version 1.0 */ @@ -815,7 +816,7 @@ OH_Drawing_ErrorCode OH_Drawing_PathInterpolate(OH_Drawing_Path* path, OH_Drawin * The value is true if the paths are compatible, and false otherwise. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. - * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if eiter path, other or result is nullptr. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other or result is nullptr. * @since 20 * @version 1.0 */ -- Gitee