diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 15e663eb67d9bd63ad7b10f19d8a42ed74133565..69eded1155c4df06a9d23b48ff5836905fce7678 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -939,6 +939,7 @@ setColorSpace(colorSpace: colorSpaceManager.ColorSpaceManager): void ```js import colorSpaceManager from '@ohos.graphics.colorSpaceManager'; async function Demo() { + let colorSpaceName = colorSpaceManager.ColorSpace.SRGB; var csm = colorSpaceManager.create(colorSpaceName); pixelmap.setColorSpace(csm); } @@ -1023,6 +1024,7 @@ unmarshalling(sequence: rpc.MessageSequence): Promise\ | ------- | --------------------------------------------| | 62980115 | If the input parameter invalid | | 62980097 | If the ipc error | +| 62980096 | If the Operation failed | **示例:** @@ -1725,7 +1727,7 @@ createPixelMapList(options?: DecodingOptions): Promise>; | 错误码ID | 错误信息 | | ------- | --------------------------------------------| -| 62980096| If the operation invalid | +| 62980096| If the operation failed | | 62980103| If the image data unsupport | | 62980110| If the image source data error | | 62980111| If the image source data incomplete | @@ -1765,7 +1767,7 @@ createPixelMapList(callback: AsyncCallback>): void | 错误码ID | 错误信息 | | ------- | --------------------------------------------| -| 62980096| If the operation invalid | +| 62980096| If the operation failed | | 62980103| If the image data unsupport | | 62980110| If the image source data error | | 62980111| If the image source data incomplete | @@ -1800,7 +1802,7 @@ createPixelMapList(options: DecodingOptions, callback: AsyncCallback>): void; | 错误码ID | 错误信息 | | ------- | --------------------------------------------| -| 62980096| If the operation invalid | +| 62980096| If the operation failed | | 62980110| If the image source data error | | 62980111| If the image source data incomplete | | 62980113| If the image format unknown | @@ -1878,7 +1880,7 @@ getDelayTimeList(): Promise>; | 错误码ID | 错误信息 | | ------- | --------------------------------------------| -| 62980096| If the operation invalid | +| 62980096| If the operation failed | | 62980110| If the image source data error | | 62980111| If the image source data incomplete | | 62980113| If the image format unknown | @@ -1912,7 +1914,7 @@ getFrameCount(callback: AsyncCallback\): void; | 错误码ID | 错误信息 | | ------- | --------------------------------------------| -| 62980096| If the operation invalid | +| 62980096| If the operation failed | | 62980110| If the image source data error | | 62980111| If the image source data incomplete | | 62980113| If the image format unknown | @@ -1942,6 +1944,20 @@ getFrameCount(): Promise\; | -------------- | --------------------------- | | Promise\ | Promise实例,异步返回图像帧数。 | +**错误码:** + +以下错误码的详细介绍请参见[Image错误码](../errorcodes/errorcode-image.md)。 + +| 错误码ID | 错误信息 | +| ------- | --------------------------------------------| +| 62980096| If the operation failed | +| 62980110| If the image source data error | +| 62980111| If the image source data incomplete | +| 62980113| If the image format unknown | +| 62980116| If the image decode failed | +| 62980118| If the image plugin create failed | +| 62980122| If the image decode head abnormal | + **示例:** ```js @@ -3005,6 +3021,7 @@ PixelMap的初始化选项。 | GPS_DATE_STAMP10+ | "GPSDateStamp" | GPS日期戳,当前为只读属性。 | | IMAGE_DESCRIPTION10+ | "ImageDescription" | 图像信息描述,当前为只读属性。 | | MAKE10+ | "Make" | 生产商,当前为只读属性。 | +| MODEL10+ | "Model" | 设备型号,当前为只读属性。 | | PHOTO_MODE10+ | "PhotoMode " | 拍照模式,当前为只读属性。 | | SENSITIVITY_TYPE10+ | "SensitivityType" | 灵敏度类型,当前为只读属性。 | | STANDARD_OUTPUT_SENSITIVITY10+ | "StandardOutputSensitivity" | 标准输出灵敏度,当前为只读属性。 |