!12211 feat: add image span color filter

Merge pull request !12211 from Zhang Jinyu/imageSpan
This commit is contained in:
openharmony_ci 2024-07-03 09:56:37 +00:00 committed by Gitee
commit b5ca737924
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -97,6 +97,18 @@ declare class ImageSpanAttribute extends BaseSpan<ImageSpanAttribute> {
*/
verticalAlign(value: ImageSpanAlignment): ImageSpanAttribute;
/**
* Sets the color filter effect on the image span.
*
* @param { ColorFilter | DrawingColorFilter } filter ColorFilter object.
* @returns { ImageSpanAttribute } The attribute of the image span.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
colorFilter(filter: ColorFilter | DrawingColorFilter): ImageSpanAttribute;
/**
* Sets the zoom type of an image.
*