From a80a2f2603ff526ca2c7685e4d0226ed7a2829a6 Mon Sep 17 00:00:00 2001 From: lixiaoxiang Date: Sun, 11 May 2025 20:51:37 +0800 Subject: [PATCH] fix259400001 Signed-off-by: lixiaoxiang --- api/@ohos.graphics.drawing.d.ts | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/api/@ohos.graphics.drawing.d.ts b/api/@ohos.graphics.drawing.d.ts index 593da43416..ef5dc7a359 100644 --- a/api/@ohos.graphics.drawing.d.ts +++ b/api/@ohos.graphics.drawing.d.ts @@ -1925,6 +1925,7 @@ declare namespace drawing { * Adds variation axis for the TypefaceArguments. * @param { string } axis - Indicates the axis tag, which must contain four ASCII characters. * @param { number } value - Indicates the value of the axis field. + * @throws { BusinessError } 25900001 - Parameter error. Possible causes: Incorrect parameter range. * @syscap SystemCapability.Graphics.Drawing * @crossplatform * @since 20 @@ -2903,8 +2904,7 @@ declare namespace drawing { * @param { SamplingOptions } samplingOptions - SamplingOptions used to describe the sampling mode. * @param { Matrix | null } matrix - Indicates the Matrix object. The default value is null. * @returns { ShaderEffect } Returns the shader with single image ShaderEffect object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types; 3. Parameter verification failed. + * @throws { BusinessError } 25900001 - Parameter error. Possible causes: Incorrect parameter range. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -2919,8 +2919,7 @@ declare namespace drawing { * @param { ShaderEffect } srcShaderEffect - Indicates a source ShaderEffect pointer. * @param { BlendMode } blendMode - BlendMode. * @returns { ShaderEffect } Returns a blend ShaderEffect object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types; 3. Parameter verification failed. + * @throws { BusinessError } 25900001 - Parameter error. Possible causes: Incorrect parameter range. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -3096,8 +3095,6 @@ declare namespace drawing { * @param { common2D.Color | number } mutColor - The range of color channels must be [0, 255], used to multiply source color. * @param { common2D.Color | number } addColor - The range of color channels must be [0, 255], used to add to source color. * @returns { ColorFilter } Colorfilter object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -3165,8 +3162,6 @@ declare namespace drawing { * @param { common2D.Rect | null } srcRect - Indicates the input srcRect, or uses the source bitmap if this is null. * @param { common2D.Rect | null } dstRect - Indicates the input dstRect, or uses the source bitmap if this is null. * @returns { ImageFilter } ImageFilter object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -3180,8 +3175,7 @@ declare namespace drawing { * @param { ImageFilter } background - Indicates the input background filter. * @param { ImageFilter } foreground - Indicates the input foreground filter. * @returns { ImageFilter } ImageFilter object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types. + * @throws { BusinessError } 25900001 - Parameter error. Possible causes: Incorrect parameter range. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -3196,8 +3190,6 @@ declare namespace drawing { * filter. * @param { ImageFilter } cInner - Indicates the output as input for "outer" filters. * @returns { ImageFilter } ImageFilter object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -3210,8 +3202,6 @@ declare namespace drawing { * * @param { ShaderEffect } shader - Indicates the shader effect to be applied to the image. * @returns { ImageFilter } ImageFilter object. - * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; - *
2. Incorrect parameter types. * @static * @syscap SystemCapability.Graphics.Drawing * @crossplatform @@ -4557,7 +4547,7 @@ declare namespace drawing { * @crossplatform * @since 20 */ - static makeEmpty() : common2D.Rect; + static makeEmpty(): common2D.Rect; /** * Makes a 2D rectangular object from boundary coordinates. @@ -4571,7 +4561,7 @@ declare namespace drawing { * @crossplatform * @since 20 */ - static makeLtrb(left: number, top: number, right: number, bottom: number) : common2D.Rect; + static makeLtrb(left: number, top: number, right: number, bottom: number): common2D.Rect; /** * Makes a deep copy of a 2D rectangular object. @@ -4582,7 +4572,7 @@ declare namespace drawing { * @crossplatform * @since 20 */ - static makeCopy(src: common2D.Rect) : common2D.Rect; + static makeCopy(src: common2D.Rect): common2D.Rect; /** * Gets the width of a 2D rectangular object. -- Gitee