From 049fd30e01d40e05bb7d616f84de2905ef9b2961 Mon Sep 17 00:00:00 2001 From: limeng Date: Tue, 16 Aug 2022 10:57:26 +0800 Subject: [PATCH] color d.ts Signed-off-by: limeng --- api/@internal/component/ets/image.d.ts | 7 +++++++ api/@internal/component/ets/units.d.ts | 13 +++++++++++++ 2 files changed, 20 insertions(+) diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index 79c52f1847..9009b800f9 100644 --- a/api/@internal/component/ets/image.d.ts +++ b/api/@internal/component/ets/image.d.ts @@ -142,6 +142,13 @@ declare class ImageAttribute extends CommonMethod { */ syncLoad(value: boolean): ImageAttribute; + /** + * Sets the color filter effect on the image. + * @param value ColorFilter object. + * @since 9 + */ + colorFilter(value: ColorFilter): ImageAttribute; + /** * Allow replication. * @since 9 diff --git a/api/@internal/component/ets/units.d.ts b/api/@internal/component/ets/units.d.ts index 0c5f6819e4..7a66a1c9ee 100644 --- a/api/@internal/component/ets/units.d.ts +++ b/api/@internal/component/ets/units.d.ts @@ -418,3 +418,16 @@ declare interface BorderOptions { */ style?: EdgeStyles | BorderStyle; } + +/** + * Defines the ColorFilter object. + * @since 9 + */ +declare class ColorFilter { + /** + * Creates ColorFilter with 4*5 matrix. + * @param value 4*5 color matrix values. The value[m*n] is located in the m row and n column. The matrix is row-first. + * @since 9 + */ + constructor(value: number[]); +} -- Gitee