From 9b0b54965dad7d4012e4e0e5b9d82d12ff1e7a2e Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Wed, 18 Jun 2025 09:42:24 +0800 Subject: [PATCH] =?UTF-8?q?Image=20ArkTS1.2=E5=BC=80=E6=94=BE=E5=85=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3(number)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaona45 Change-Id: I6fca453c82533b70147ac919e3196780583491fd --- api/@ohos.multimedia.image.d.ts | 348 +++++++++++++++++++------------- 1 file changed, 207 insertions(+), 141 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 8d12a3fcd6..8b3a596b93 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -574,7 +574,7 @@ declare namespace image { /** * Height * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -582,7 +582,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - height: int; + height: number; /** * Width @@ -611,7 +611,7 @@ declare namespace image { /** * Width * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -619,7 +619,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - width: int; + width: number; } /** @@ -3217,7 +3217,7 @@ declare namespace image { /** * x-coordinate at the upper left corner of the image. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -3225,7 +3225,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - x: int; + x: number; /** * y-coordinate at the upper left corner of the image. @@ -3254,7 +3254,7 @@ declare namespace image { /** * y-coordinate at the upper left corner of the image. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -3262,7 +3262,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - y: int; + y: number; } /** @@ -3550,7 +3550,7 @@ declare namespace image { /** * Indicates image default density. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -3558,7 +3558,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - density: int; + density: number; /** * The number of byte per row. @@ -3571,14 +3571,14 @@ declare namespace image { /** * The number of byte per row. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @form * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - stride: int; + stride: number; /** * Indicates image format. @@ -3727,14 +3727,14 @@ declare namespace image { /** * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - quality: int; + quality: number; /** * BufferSize of the target image. @@ -3757,14 +3757,14 @@ declare namespace image { * BufferSize of the target image. * If this bufferSize is less than or equal to 0, it will be converted to 10MB. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImagePacker * @crossplatform * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - bufferSize?: int; + bufferSize?: number; /** * The desired dynamic range of the target image. @@ -3792,7 +3792,8 @@ declare namespace image { * * @typedef PackingOptionsForSequence * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ interface PackingOptionsForSequence { /** @@ -3800,7 +3801,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ frameCount: number; @@ -3810,7 +3812,8 @@ declare namespace image { * * @type { Array } * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ delayTimeList: Array; @@ -3819,7 +3822,8 @@ declare namespace image { * * @type { ?Array } * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ disposalTypes?: Array; @@ -3829,7 +3833,8 @@ declare namespace image { * * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImagePacker - * @since 18 + * @since arkts {'1.1':'18', '1.2':'20'} + * @arkts 1.1&1.2 */ loopCount?: number; } @@ -3910,13 +3915,13 @@ declare namespace image { /** * Index of an image. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - index?: int; + index?: number; /** * Default property value. @@ -3993,7 +3998,7 @@ declare namespace image { /** * Number of image frames. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @form @@ -4001,7 +4006,7 @@ declare namespace image { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - index?: int; + index?: number; /** * Sampling ratio of the image pixel map. @@ -4030,7 +4035,7 @@ declare namespace image { /** * Sampling ratio of the image pixel map. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @form @@ -4038,7 +4043,7 @@ declare namespace image { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - sampleSize?: int; + sampleSize?: number; /** * Rotation angle of the image pixel map. The value ranges from 0 to 360. @@ -4067,7 +4072,7 @@ declare namespace image { /** * Rotation angle of the image pixel map. The value ranges from 0 to 360. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @form @@ -4075,7 +4080,7 @@ declare namespace image { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - rotate?: int; + rotate?: number; /** * Whether the image pixel map is editable. @@ -4256,7 +4261,7 @@ declare namespace image { /** * The density for image pixel map. * - * @type { ?int } + * @type { ?number } * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @form @@ -4264,7 +4269,7 @@ declare namespace image { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - fitDensity?: int; + fitDensity?: number; /** * Color space of the image pixel map. @@ -4332,24 +4337,24 @@ declare namespace image { /** * Row stride. * - * @type { int } + * @type { number } * @readonly * @syscap SystemCapability.Multimedia.Image.Core * @since arkts {'1.1':'9','1.2':'20'} * @arkts 1.1&1.2 */ - readonly rowStride: int; + readonly rowStride: number; /** * Pixel stride. * - * @type { int } + * @type { number } * @readonly * @syscap SystemCapability.Multimedia.Image.Core * @since arkts {'1.1':'9','1.2':'20'} * @arkts 1.1&1.2 */ - readonly pixelStride: int; + readonly pixelStride: number; /** * Component buffer. @@ -4658,7 +4663,7 @@ declare namespace image { /** * The density for ImageSource. * - * @type { int } + * @type { number } * @syscap SystemCapability.Multimedia.Image.Core * @crossplatform * @form @@ -4666,7 +4671,7 @@ declare namespace image { * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - sourceDensity: int; + sourceDensity: number; /** * PixelMap expected format. @@ -4748,7 +4753,8 @@ declare namespace image { * * @typedef HdrStaticMetadata * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface HdrStaticMetadata { /** @@ -4756,7 +4762,8 @@ declare namespace image { * * @type { Array } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ displayPrimariesX: Array; @@ -4765,7 +4772,8 @@ declare namespace image { * * @type { Array } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ displayPrimariesY: Array; @@ -4774,7 +4782,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ whitePointX: number; @@ -4783,7 +4792,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ whitePointY: number; @@ -4792,7 +4802,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ maxLuminance: number; @@ -4801,7 +4812,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ minLuminance: number; @@ -4810,7 +4822,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ maxContentLightLevel: number; @@ -4819,7 +4832,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ maxFrameAverageLightLevel: number; } @@ -4829,7 +4843,8 @@ declare namespace image { * * @typedef GainmapChannel * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface GainmapChannel { /** @@ -4837,7 +4852,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ gainmapMax: number; @@ -4846,7 +4862,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ gainmapMin: number; @@ -4855,7 +4872,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ gamma: number; @@ -4864,7 +4882,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ baseOffset: number; @@ -4873,7 +4892,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ alternateOffset: number; } @@ -4883,7 +4903,8 @@ declare namespace image { * * @typedef HdrGainmapMetadata * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface HdrGainmapMetadata { /** @@ -4891,7 +4912,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ writerVersion: number; @@ -4900,7 +4922,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ miniVersion: number; @@ -4909,7 +4932,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ gainmapChannelCount: number; @@ -4918,7 +4942,8 @@ declare namespace image { * * @type { boolean } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ useBaseColorFlag: boolean; @@ -4927,7 +4952,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ baseHeadroom: number; @@ -4936,7 +4962,8 @@ declare namespace image { * * @type { number } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ alternateHeadroom: number; @@ -4945,7 +4972,8 @@ declare namespace image { * * @type { Array } * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ channels: Array; } @@ -4955,7 +4983,8 @@ declare namespace image { * * @typedef {HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata} HdrMetadataValue * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ type HdrMetadataValue = HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata; @@ -5133,8 +5162,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -5278,7 +5306,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -6023,7 +6054,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; @@ -6048,7 +6080,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the operation result. If the operation fails, an error message is returned. * @throws { BusinessError } 62980137 - Invalid image operation. * @syscap SystemCapability.Multimedia.Image.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ toSdr(): Promise; @@ -7128,7 +7161,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; @@ -7147,7 +7181,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -7353,7 +7388,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -7361,7 +7397,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise @@ -7412,7 +7452,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise @@ -7424,7 +7465,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } * @syscap SystemCapability.Multimedia.Image.ImageSource - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ desiredAuxiliaryPictures: Array; } @@ -7831,12 +7879,12 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the image information. * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform @@ -7938,7 +7986,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; + getImageInfo(index: number, callback: AsyncCallback): void; /** * Obtains information about this image and uses a callback to return the result. @@ -8007,7 +8055,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the image information. * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform @@ -8016,19 +8064,19 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; + getImageInfo(index?: number): Promise; /** * Get image information from image source synchronously. * - * @param { int } index - Index of sequence images. If this parameter is not specified, default value is 0. + * @param { number } index - Index of sequence images. If this parameter is not specified, default value is 0. * @returns { ImageInfo } The image information. * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - getImageInfoSync(index?: int): ImageInfo; + getImageInfoSync(index?: number): ImageInfo; /** * Creates a PixelMap object based on image decoding parameters. This method uses a promise to @@ -8408,7 +8456,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise> } A Promise instance used to return the array. + * @returns { Promise> } A Promise instance used to return the array. * @throws { BusinessError } 62980096 - The operation failed. * @throws { BusinessError } 62980110 - The image source data is incorrect. * @throws { BusinessError } 62980111 - The image source data is incomplete. @@ -8425,7 +8473,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise>; + getDelayTimeList(): Promise>; /** * Obtains the array of delay time in an image. This method uses a callback to return the array. @@ -8449,7 +8497,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise> } callback Callback used to return the array. + * @param { AsyncCallback> } callback Callback used to return the array. * @throws { BusinessError } 62980096 - The operation failed. * @throws { BusinessError } 62980110 - The image source data is incorrect. * @throws { BusinessError } 62980111 - The image source data is incomplete. @@ -8466,7 +8514,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise>): void; + getDelayTimeList(callback: AsyncCallback>): void; /** * Obtains the array of disposal type in a gif image. This method uses a promise to return the array. @@ -8478,7 +8526,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise>; @@ -8516,7 +8565,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -8554,7 +8604,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; @@ -8848,7 +8899,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the property value. * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ updateData(buf: ArrayBuffer, isFinished: boolean, offset: number, length: number): Promise; @@ -8885,7 +8937,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageSource * @crossplatform - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ updateData( buf: ArrayBuffer, @@ -8941,7 +8994,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise @@ -9086,7 +9140,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -9184,7 +9239,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -9199,7 +9255,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise, options: PackingOptionsForSequence): Promise; @@ -9207,7 +9264,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the operation result. * @throws { BusinessError } 62980096 - The Operation failed. @@ -9224,13 +9281,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; + packToFile(source: ImageSource, fd: number, options: PackingOption, callback: AsyncCallback): void; /** * Compresses or packs an image into a file and uses a promise to return the result. * * @param { ImageSource } source Image to be processed. - * @param { int } fd ID of a file descriptor. + * @param { number } fd ID of a file descriptor. * @param { PackingOption } options Options for image packing. * @returns { Promise } A Promise instance used to return the operation result. * @throws { BusinessError } 62980096 - The Operation failed. @@ -9247,13 +9304,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; + packToFile(source: ImageSource, fd: number, options: PackingOption): Promise; /** * Compresses or packs an image into a file and uses a callback to return the result. * * @param { PixelMap } source PixelMap to be processed. - * @param { int } fd ID of a file descriptor. + * @param { number } fd ID of a file descriptor. * @param { PackingOption } options Options for image packing. * @param { AsyncCallback } callback Callback used to return the operation result. * @throws { BusinessError } 62980096 - The Operation failed. @@ -9270,13 +9327,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise): void; + packToFile(source: PixelMap, fd: number, options: PackingOption, callback: AsyncCallback): void; /** * Compresses or packs an image into a file and uses a promise to return the result. * * @param { PixelMap } source PixelMap to be processed. - * @param { int } fd ID of a file descriptor. + * @param { number } fd ID of a file descriptor. * @param { PackingOption } options Options for image packing. * @returns { Promise } A Promise instance used to return the operation result. * @throws { BusinessError } 62980096 - The Operation failed. @@ -9293,7 +9350,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; + packToFile(source: PixelMap, fd: number, options: PackingOption): Promise; /** * Compresses a Pixelmap sequence into gif. @@ -9307,7 +9364,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise, fd: number, options: PackingOptionsForSequence): Promise; @@ -9366,7 +9424,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the operation result. * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified. @@ -9376,7 +9434,7 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise + packToFile(picture: Picture, fd: number, options: PackingOption): Promise /** * Supported image formats. @@ -9432,13 +9490,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the next image. * @syscap SystemCapability.Multimedia.Image.ImageReceiver - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ readNextImage(callback: AsyncCallback): void; @@ -9592,7 +9651,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the next image. * @syscap SystemCapability.Multimedia.Image.ImageReceiver - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ readNextImage(): Promise; @@ -9651,13 +9711,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ dequeueImage(callback: AsyncCallback): void; @@ -9684,29 +9745,32 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } A Promise instance used to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ dequeueImage(): Promise; /** * Queue buffer to dirty queue and uses a callback to return the result. * - * @param { Image } interface + * @param { Image } image * @param { AsyncCallback } callback Callback to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - queueImage(interface: Image, callback: AsyncCallback): void; + queueImage(image: Image, callback: AsyncCallback): void; /** * Queue buffer to dirty queue and uses a promise to return the result. * - * @param { Image } interface + * @param { Image } image * @returns { Promise } A Promise instance used to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ - queueImage(interface: Image): Promise; + queueImage(image: Image): Promise; /** * Subscribe callback when releasing buffer @@ -9714,7 +9778,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'imageRelease', callback: AsyncCallback): void; @@ -9724,7 +9789,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback to be removed. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'imageRelease', callback?: AsyncCallback): void; -- Gitee