/* * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @file * @kit ArkUI */ /** * Use the DrawableDescriptor class to get drawable image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Use the DrawableDescriptor class to get drawable image. * * @typedef { import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor } DrawableDescriptor * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor; /** * Import the DrawingColorFilter type object for image color filter setting. * * @typedef { import('../api/@ohos.graphics.drawing').default.ColorFilter } DrawingColorFilter * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter; /** * Enumerates all the levels available for the image resolution quality. * * @typedef {import('../api/@ohos.multimedia.image').default.ResolutionQuality} ResolutionQuality * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 12 */ declare type ResolutionQuality = import('../api/@ohos.multimedia.image').default.ResolutionQuality; /** * Lattice for dividing an image into grids. * * @typedef { import('../api/@ohos.graphics.drawing').default.Lattice } Lattice * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice; /** * Object matrix used for setting image transformations. * * @typedef { import('../api/@ohos.matrix4').default.Matrix4Transit } Matrix4Transit * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 15 */ declare type ImageMatrix = import ('../api/@ohos.matrix4').default.Matrix4Transit; /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare enum ImageRenderMode { /** * Render according to the original image, including colors. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Render according to the original image, including colors. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Render according to the original image, including colors. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Render according to the original image, including colors. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ Original, /** * Render the image as a template image, ignoring the color information of the image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Render the image as a template image, ignoring the color information of the image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Render the image as a template image, ignoring the color information of the image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Render the image as a template image, ignoring the color information of the image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ Template, } /** * Specify image's content. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 12 */ declare enum ImageContent { /** * Make image empty. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 12 */ EMPTY = 0, } /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ declare enum DynamicRangeMode { /** * Allow image content to use an unrestricted extended range. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ HIGH = 0, /** * Allow image content to use some extended range. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ CONSTRAINT = 1, /** * Restrict the image content dynamic range to the standard range. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ STANDARD = 2, } /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare enum ImageInterpolation { /** * Do not use interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Do not use interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Do not use interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Do not use interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ None, /** * Low usage of interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Low usage of interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Low usage of interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Low usage of interpolated image data. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ Low, /** * Interpolated image data is used moderately. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Interpolated image data is used moderately. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Interpolated image data is used moderately. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Interpolated image data is used moderately. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ Medium, /** * High usage of interpolated image data may affect the speed of image rendering. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * High usage of interpolated image data may affect the speed of image rendering. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * High usage of interpolated image data may affect the speed of image rendering. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * High usage of interpolated image data may affect the speed of image rendering. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ High, } /** * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ declare enum ImageRotateOrientation { /** * Rotate according to the image rotation * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ AUTO = 0, /** * Ignore the rotation of the image * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ UP = 1, /** * Based on image rotation, rotate clockwise 90 degrees * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ RIGHT = 2, /** * Based on image rotation, rotate clockwise 180 degrees * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ DOWN = 3, /** * Based on image rotation, rotate clockwise 270 degrees * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ LEFT = 4, } /** * @interface ImageInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * @interface ImageInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @interface ImageInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @interface ImageInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ interface ImageInterface { /** * Set src to obtain images. * * @param { PixelMap | ResourceStr | DrawableDescriptor } src * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set src to obtain images * * @param { PixelMap | ResourceStr | DrawableDescriptor } src * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Set src to obtain images * * @param { PixelMap | ResourceStr | DrawableDescriptor } src * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Set src to obtain images * * @param { PixelMap | ResourceStr | DrawableDescriptor } src * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ (src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute; /** * Set src to obtain images * * @param { PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 12 */ (src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute; /** * Set src and ai options to obtain images * * @param { PixelMap | ResourceStr | DrawableDescriptor } src * @param { ImageAIOptions } imageAIOptions * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ (src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute; } /** * Defines source size of image. * * @interface ImageSourceSize * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ interface ImageSourceSize { /** * Set width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Set width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Set width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Set width. * Anonymous Object Rectification. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ width: number; /** * Set height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Set height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Set height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Set height. * Anonymous Object Rectification. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ height: number; } /** * Defines the ColorContent. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 15 */ declare class ColorContent { /** * Indicates the ColorContent to original value. * * @type { ColorContent } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 15 */ static readonly ORIGIN: ColorContent; } /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare class ImageAttribute extends CommonMethod { /** * Placeholder displayed on load * * @param { string | Resource } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Placeholder displayed on load * * @param { string | Resource } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Placeholder displayed on load * * @param { string | Resource } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Placeholder displayed on load * * @param { string | Resource } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Placeholder displayed on load * * @param { string | Resource | PixelMap } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 12 */ alt(value: string | Resource | PixelMap): ImageAttribute; /** * match Text Direction * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * match Text Direction * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * match Text Direction * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * match Text Direction * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ matchTextDirection(value: boolean): ImageAttribute; /** * Sets whether the display size of the image follows the source size. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets whether the display size of the image follows the source size. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets whether the display size of the image follows the source size. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets whether the display size of the image follows the source size. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ fitOriginalSize(value: boolean): ImageAttribute; /** * fill Color * * @param { ResourceColor } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * fill Color * * @param { ResourceColor } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * fill Color * * @param { ResourceColor } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * fill Color * * @param { ResourceColor } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ fillColor(value: ResourceColor): ImageAttribute; /** * fill Color * * @param { ResourceColor | ColorContent } color * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 15 */ fillColor(color: ResourceColor | ColorContent): ImageAttribute; /** * Sets the zoom type of an image. * * @param { ImageFit } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the zoom type of an image. * * @param { ImageFit } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets the zoom type of an image. * * @param { ImageFit } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets the zoom type of an image. * * @param { ImageFit } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ objectFit(value: ImageFit): ImageAttribute; /** * Sets the matrix for the image. * * @param { ImageMatrix } matrix * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 15 */ imageMatrix(matrix: ImageMatrix): ImageAttribute; /** * Set the repeat style of the picture * * @param { ImageRepeat } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set the repeat style of the picture * * @param { ImageRepeat } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Set the repeat style of the picture * * @param { ImageRepeat } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Set the repeat style of the picture * * @param { ImageRepeat } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ objectRepeat(value: ImageRepeat): ImageAttribute; /** * Set the auto style of the picture * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set the auto style of the picture * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Set the auto style of the picture * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Set the auto style of the picture * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ autoResize(value: boolean): ImageAttribute; /** * Sets the image rendering mode. * * @param { ImageRenderMode } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the image rendering mode. * * @param { ImageRenderMode } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets the image rendering mode. * * @param { ImageRenderMode } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets the image rendering mode. * * @param { ImageRenderMode } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ renderMode(value: ImageRenderMode): ImageAttribute; /** * Set dynamic range mode of image. * * @param { DynamicRangeMode } value - Indicates the resizable options. * @returns { ImageAttribute } Returns the instance of the ImageAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; /** * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. * * @param { ImageInterpolation } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. * * @param { ImageInterpolation } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. * * @param { ImageInterpolation } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. * * @param { ImageInterpolation } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ interpolation(value: ImageInterpolation): ImageAttribute; /** * Specifies the picture decoding size. * The original picture is decoded into a picture of a specified size. The unit of the number type is px. * * @param { object } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Specifies the picture decoding size. * The original picture is decoded into a picture of a specified size. The unit of the number type is px. * * @param { object } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Specifies the picture decoding size. * The original picture is decoded into a picture of a specified size. The unit of the number type is px. * * @param { object } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Specifies the picture decoding size. * The original picture is decoded into a picture of a specified size. The unit of the number type is px. * * @param { object } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Specifies the picture decoding size. * The original picture is decoded into a picture of a specified size. The unit of the number type is px. * Anonymous Object Rectification. * * @param { ImageSourceSize } value - Image source size. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 18 */ sourceSize(value: ImageSourceSize): ImageAttribute; /** * Sets the synchronous or asynchronous mode for image loading. * The default parameter type is bool, and the default value is false. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the synchronous or asynchronous mode for image loading. * The default parameter type is bool, and the default value is false. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets the synchronous or asynchronous mode for image loading. * The default parameter type is bool, and the default value is false. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets the synchronous or asynchronous mode for image loading. * The default parameter type is bool, and the default value is false. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ syncLoad(value: boolean): ImageAttribute; /** * Sets the color filter effect on the image. * * @param { ColorFilter } value ColorFilter object. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Sets the color filter effect on the image. * * @param { ColorFilter } value ColorFilter object. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Sets the color filter effect on the image. * * @param { ColorFilter } value ColorFilter object. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ /** * Sets the color filter effect on the image. * * @param { ColorFilter | DrawingColorFilter } value ColorFilter object. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 12 */ colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; /** * Allow replication. * * @param { CopyOptions } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Allow replication. * * @param { CopyOptions } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Allow replication. * * @param { CopyOptions } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ copyOption(value: CopyOptions): ImageAttribute; /** * Enable image dragging. * Default value is false. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Enable image dragging. * Default value is true. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Enable image dragging. * Default value is true. * * @param { boolean } value * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 18 */ draggable(value: boolean): ImageAttribute; /** * Defines the PointLight * * @param { PointLightStyle } value - The point light style. * @returns { ImageAttribute } The attribute of the image. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ pointLight(value: PointLightStyle): ImageAttribute; /** * SVG anti-aliasing. * The range of the parameter values is (0.333, 1.333]. * Default value is 0.0. * * @param { number } value - The degree of anti-aliasing. * @returns { ImageAttribute } The attribute of the image. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ edgeAntialiasing(value: number): ImageAttribute; /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * This callback is triggered when an image is successfully loaded. * The size of the image source that is successfully loaded is returned, in pixels. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ onComplete( callback: (event?: { /** * The width of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The width of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The width of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The width of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ width: number; /** * The height of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The height of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The height of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The height of the image source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ height: number; /** * The width of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The width of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The width of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The width of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ componentWidth: number; /** * The height of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The height of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The height of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The height of the component source. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ componentHeight: number; /** * The value of the status of the image being loaded successfully. * If the returned status value is 0, the image data is successfully loaded. * If the returned status value is 1, the image is successfully decoded. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The value of the status of the image being loaded successfully. * If the returned status value is 0, the image data is successfully loaded. * If the returned status value is 1, the image is successfully decoded. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The value of the status of the image being loaded successfully. * If the returned status value is 0, the image data is successfully loaded. * If the returned status value is 1, the image is successfully decoded. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The value of the status of the image being loaded successfully. * If the returned status value is 0, the image data is successfully loaded. * If the returned status value is 1, the image is successfully decoded. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ loadingStatus: number; /** * The width of the picture that is actually drawn. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The width of the picture that is actually drawn. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ contentWidth: number; /** * The height of the picture that is actually drawn. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The height of the picture that is actually drawn. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ contentHeight: number; /** * The actual draw is offset from the x-axis of the component itself. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The actual draw is offset from the x-axis of the component itself. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ contentOffsetX: number; /** * The actual draw is offset from the y-axis of the component itself. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The actual draw is offset from the y-axis of the component itself. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ contentOffsetY: number; }) => void, ): ImageAttribute; /** * This callback is triggered when an exception occurs during image loading. * The field of "message" carries the detailed information of failed image loading. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * This callback is triggered when an exception occurs during image loading. * The field of "message" carries the detailed information of failed image loading. * * @param { function } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * This callback is triggered when an exception occurs during image loading. * The field of "message" carries the detailed information of failed image loading. * * @param { ImageErrorCallback } callback * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ onError(callback: ImageErrorCallback): ImageAttribute; /** * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. * If the svg image is a wireless loop image, this callback is not triggered. * * @param { function } event * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. * If the svg image is a wireless loop image, this callback is not triggered. * * @param { function } event * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. * If the svg image is a wireless loop image, this callback is not triggered. * * @param { function } event * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. * If the svg image is a wireless loop image, this callback is not triggered. * * @param { function } event * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ onFinish(event: () => void): ImageAttribute; /** * Enable image analyzer. * * @param { boolean} enable * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ /** * Enable image analyzer. * * @param { boolean} enable * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 12 */ enableAnalyzer(enable: boolean): ImageAttribute; /** * Set image analyzer with config. * * @param { ImageAnalyzerConfig } config * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; /** * Set image resizable options. * * @param { ResizableOptions } value - Indicates the resizable options. * @returns { ImageAttribute } Returns the instance of the ImageAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Set image resizable options. * * @param { ResizableOptions } value - Indicates the resizable options. * @returns { ImageAttribute } Returns the instance of the ImageAttribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ resizable(value: ResizableOptions): ImageAttribute; /** * Set the quality enhancement level of image. * * @param { ResolutionQuality } imageQuality * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 12 */ enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; /** * Whether to support sensitive privacy information * * @param { boolean } supported - Whether to support sensitive privacy information. * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @atomicservice * @since 12 */ privacySensitive(supported: boolean): ImageAttribute; /** * Set the rotation angle of image. * * @param { ImageRotateOrientation } orientation * @returns { ImageAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 14 */ orientation(orientation: ImageRotateOrientation) : ImageAttribute; } /** * Defines Image Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Image Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Defines Image Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Defines Image Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare const Image: ImageInterface; /** * Defines Image Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Image Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Defines Image Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Defines Image Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare const ImageInstance: ImageAttribute; /** * @type ImageErrorCallback * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @type ImageErrorCallback * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @typedef { function } ImageErrorCallback * @param { ImageError } error * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ type ImageErrorCallback = (error: ImageError) => void; /** * @interface ImageError * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * @interface ImageError * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * @interface ImageError * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ declare interface ImageError { /** * Component width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Component width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Component width. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ componentWidth: number; /** * Component height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @form * @since 9 */ /** * Component height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Component height. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ componentHeight: number; /** * Message. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 10 */ /** * Message. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @atomicservice * @since 11 */ message: string } /** * Image resizable options * * @interface ResizableOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Image resizable options * * @interface ResizableOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ declare interface ResizableOptions { /** * Image slice widths. * * @type { ?EdgeWidths } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ /** * Image slice widths. * * @type { ?EdgeWidths } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ slice?: EdgeWidths; /** * Image lattice. * * @type { ?DrawingLattice } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 12 */ lattice?: DrawingLattice; }