From 6fda1eeed773336df27717e5415958b05766d0f6 Mon Sep 17 00:00:00 2001 From: dev-zut Date: Tue, 25 Feb 2025 21:14:07 +0800 Subject: [PATCH 1/2] test Signed-off-by: dev-zut --- api/@ohos.multimedia.image.d.ts | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index e824aafd3e..1bf5885187 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -451,6 +451,31 @@ declare namespace image { ASTC_4x4 = 102 } + enum CropAndScaleStrategy{ + + /** + * Indicates an unknown format. + * + * @syscap SystemCapability.Multimedia.Image.Core + * @crossplatform + * @form + * @atomicservice + * @since 1 + */ + SCALE_FIRST = 1, + + /** + * Indicates an unknown format. + * + * @syscap SystemCapability.Multimedia.Image.Core + * @crossplatform + * @form + * @atomicservice + * @since 2 + */ + CROP_FIRST = 2 + } + /** * Enumerates image resolution quality. * @@ -3982,6 +4007,16 @@ declare namespace image { * @since 12 */ resolutionQuality?: ResolutionQuality; + + /** + * Resolution Quality of the image. + * + * @type { ?CropAndScaleStrategy } + * @syscap SystemCapability.Multimedia.Image.ImageSource + * @systemapi + * @since 12 + */ + cropAndScaleStrategy?: CropAndScaleStrategy; } /** -- Gitee From 9065994c64a95ea684ce1f90758f45f70f0623a7 Mon Sep 17 00:00:00 2001 From: dev-zut Date: Tue, 25 Feb 2025 21:14:07 +0800 Subject: [PATCH 2/2] test Signed-off-by: sjanbs --- api/@ohos.multimedia.image.d.ts | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index e824aafd3e..1bf5885187 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -451,6 +451,31 @@ declare namespace image { ASTC_4x4 = 102 } + enum CropAndScaleStrategy{ + + /** + * Indicates an unknown format. + * + * @syscap SystemCapability.Multimedia.Image.Core + * @crossplatform + * @form + * @atomicservice + * @since 1 + */ + SCALE_FIRST = 1, + + /** + * Indicates an unknown format. + * + * @syscap SystemCapability.Multimedia.Image.Core + * @crossplatform + * @form + * @atomicservice + * @since 2 + */ + CROP_FIRST = 2 + } + /** * Enumerates image resolution quality. * @@ -3982,6 +4007,16 @@ declare namespace image { * @since 12 */ resolutionQuality?: ResolutionQuality; + + /** + * Resolution Quality of the image. + * + * @type { ?CropAndScaleStrategy } + * @syscap SystemCapability.Multimedia.Image.ImageSource + * @systemapi + * @since 12 + */ + cropAndScaleStrategy?: CropAndScaleStrategy; } /** -- Gitee