diff --git a/api/@internal/component/ets/image.d.ts b/api/@internal/component/ets/image.d.ts index 79c52f18471cf622e86cb13355a6624a1182be35..9009b800f96b6b5f4bde4aa057c604539b6b32e7 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 0c5f6819e4165454fa46cbc07ab9a627239a239a..7a66a1c9ee997191d3a2bebb79d4828a30c3b6e0 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[]); +}