From fadca7bcdd789966ff8c7173d191fcbb7606e819 Mon Sep 17 00:00:00 2001 From: yirenyin Date: Fri, 4 Jul 2025 11:45:43 +0800 Subject: [PATCH] add getEffectPixelMap interface --- api/@ohos.effectKit.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@ohos.effectKit.d.ts b/api/@ohos.effectKit.d.ts index 6d5954d3c8..87143460af 100644 --- a/api/@ohos.effectKit.d.ts +++ b/api/@ohos.effectKit.d.ts @@ -242,6 +242,18 @@ declare namespace effectKit { * @arkts 1.1&1.2 */ getEffectPixelMap(): Promise; + + /** + * Gets the PixelMap where all filter effects have been added to the image. + * @param { boolean } useCpuRender - Whether to use cpu render. + * @returns { Promise } - returns the PixelMap generated. + * @syscap SystemCapability.Multimedia.Image.Core + * @crossplatform + * @form + * @atomicservice + * @since 20 + */ + getEffectPixelMap(useCpuRender : boolean): Promise; } /** -- Gitee