161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkUI
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * Use the DrawableDescriptor class to get drawable image.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
2561847f8eSopenharmony_ci * @since 10
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * Use the DrawableDescriptor class to get drawable image.
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @typedef { import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor } DrawableDescriptor
3161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
3261847f8eSopenharmony_ci * @atomicservice
3361847f8eSopenharmony_ci * @since 11
3461847f8eSopenharmony_ci */
3561847f8eSopenharmony_cideclare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor;
3661847f8eSopenharmony_ci
3761847f8eSopenharmony_ci/**
3861847f8eSopenharmony_ci * Import the DrawingColorFilter type object for image color filter setting.
3961847f8eSopenharmony_ci * 
4061847f8eSopenharmony_ci * @typedef DrawingColorFilter
4161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
4261847f8eSopenharmony_ci * @crossplatform
4361847f8eSopenharmony_ci * @atomicservice
4461847f8eSopenharmony_ci * @since 12
4561847f8eSopenharmony_ci */
4661847f8eSopenharmony_cideclare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter;
4761847f8eSopenharmony_ci
4861847f8eSopenharmony_ci/**
4961847f8eSopenharmony_ci * Enumerates all the levels available for the image resolution quality.
5061847f8eSopenharmony_ci *
5161847f8eSopenharmony_ci * @typedef {import('../api/@ohos.multimedia.image').default.ResolutionQuality} ResolutionQuality
5261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
5361847f8eSopenharmony_ci * @systemapi
5461847f8eSopenharmony_ci * @since 12
5561847f8eSopenharmony_ci */
5661847f8eSopenharmony_cideclare type ResolutionQuality  = import('../api/@ohos.multimedia.image').default.ResolutionQuality;
5761847f8eSopenharmony_ci
5861847f8eSopenharmony_ci/**
5961847f8eSopenharmony_ci * Lattice for dividing an image into grids.
6061847f8eSopenharmony_ci *
6161847f8eSopenharmony_ci * @typedef { import('../api/@ohos.graphics.drawing').default.Lattice } Lattice
6261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
6361847f8eSopenharmony_ci * @crossplatform
6461847f8eSopenharmony_ci * @atomicservice
6561847f8eSopenharmony_ci * @since 12
6661847f8eSopenharmony_ci */
6761847f8eSopenharmony_cideclare type DrawingLattice  = import('../api/@ohos.graphics.drawing').default.Lattice;
6861847f8eSopenharmony_ci
6961847f8eSopenharmony_ci/**
7061847f8eSopenharmony_ci * @enum { number }
7161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
7261847f8eSopenharmony_ci * @since 7
7361847f8eSopenharmony_ci */
7461847f8eSopenharmony_ci/**
7561847f8eSopenharmony_ci * @enum { number }
7661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
7761847f8eSopenharmony_ci * @form
7861847f8eSopenharmony_ci * @since 9
7961847f8eSopenharmony_ci */
8061847f8eSopenharmony_ci/**
8161847f8eSopenharmony_ci * @enum { number }
8261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
8361847f8eSopenharmony_ci * @crossplatform
8461847f8eSopenharmony_ci * @form
8561847f8eSopenharmony_ci * @since 10
8661847f8eSopenharmony_ci */
8761847f8eSopenharmony_ci/**
8861847f8eSopenharmony_ci * @enum { number }
8961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
9061847f8eSopenharmony_ci * @crossplatform
9161847f8eSopenharmony_ci * @form
9261847f8eSopenharmony_ci * @atomicservice
9361847f8eSopenharmony_ci * @since 11
9461847f8eSopenharmony_ci */
9561847f8eSopenharmony_cideclare enum ImageRenderMode {
9661847f8eSopenharmony_ci  /**
9761847f8eSopenharmony_ci   * Render according to the original image, including colors.
9861847f8eSopenharmony_ci   *
9961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10061847f8eSopenharmony_ci   * @since 7
10161847f8eSopenharmony_ci   */
10261847f8eSopenharmony_ci  /**
10361847f8eSopenharmony_ci   * Render according to the original image, including colors.
10461847f8eSopenharmony_ci   *
10561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
10661847f8eSopenharmony_ci   * @form
10761847f8eSopenharmony_ci   * @since 9
10861847f8eSopenharmony_ci   */
10961847f8eSopenharmony_ci  /**
11061847f8eSopenharmony_ci   * Render according to the original image, including colors.
11161847f8eSopenharmony_ci   *
11261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
11361847f8eSopenharmony_ci   * @crossplatform
11461847f8eSopenharmony_ci   * @form
11561847f8eSopenharmony_ci   * @since 10
11661847f8eSopenharmony_ci   */
11761847f8eSopenharmony_ci  /**
11861847f8eSopenharmony_ci   * Render according to the original image, including colors.
11961847f8eSopenharmony_ci   *
12061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
12161847f8eSopenharmony_ci   * @crossplatform
12261847f8eSopenharmony_ci   * @form
12361847f8eSopenharmony_ci   * @atomicservice
12461847f8eSopenharmony_ci   * @since 11
12561847f8eSopenharmony_ci   */
12661847f8eSopenharmony_ci  Original,
12761847f8eSopenharmony_ci
12861847f8eSopenharmony_ci  /**
12961847f8eSopenharmony_ci   * Render the image as a template image, ignoring the color information of the image.
13061847f8eSopenharmony_ci   *
13161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13261847f8eSopenharmony_ci   * @since 7
13361847f8eSopenharmony_ci   */
13461847f8eSopenharmony_ci  /**
13561847f8eSopenharmony_ci   * Render the image as a template image, ignoring the color information of the image.
13661847f8eSopenharmony_ci   *
13761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
13861847f8eSopenharmony_ci   * @form
13961847f8eSopenharmony_ci   * @since 9
14061847f8eSopenharmony_ci   */
14161847f8eSopenharmony_ci  /**
14261847f8eSopenharmony_ci   * Render the image as a template image, ignoring the color information of the image.
14361847f8eSopenharmony_ci   *
14461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
14561847f8eSopenharmony_ci   * @crossplatform
14661847f8eSopenharmony_ci   * @form
14761847f8eSopenharmony_ci   * @since 10
14861847f8eSopenharmony_ci   */
14961847f8eSopenharmony_ci  /**
15061847f8eSopenharmony_ci   * Render the image as a template image, ignoring the color information of the image.
15161847f8eSopenharmony_ci   *
15261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
15361847f8eSopenharmony_ci   * @crossplatform
15461847f8eSopenharmony_ci   * @form
15561847f8eSopenharmony_ci   * @atomicservice
15661847f8eSopenharmony_ci   * @since 11
15761847f8eSopenharmony_ci   */
15861847f8eSopenharmony_ci  Template,
15961847f8eSopenharmony_ci}
16061847f8eSopenharmony_ci
16161847f8eSopenharmony_ci/**
16261847f8eSopenharmony_ci * Specify image's content.
16361847f8eSopenharmony_ci * 
16461847f8eSopenharmony_ci * @enum { number }
16561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
16661847f8eSopenharmony_ci * @crossplatform
16761847f8eSopenharmony_ci * @form
16861847f8eSopenharmony_ci * @atomicservice
16961847f8eSopenharmony_ci * @since 12
17061847f8eSopenharmony_ci */
17161847f8eSopenharmony_cideclare enum ImageContent {
17261847f8eSopenharmony_ci  /**
17361847f8eSopenharmony_ci   * Make image empty.
17461847f8eSopenharmony_ci   *
17561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
17661847f8eSopenharmony_ci   * @crossplatform
17761847f8eSopenharmony_ci   * @form
17861847f8eSopenharmony_ci   * @atomicservice
17961847f8eSopenharmony_ci   * @since 12
18061847f8eSopenharmony_ci   */
18161847f8eSopenharmony_ci  EMPTY = 0,
18261847f8eSopenharmony_ci}
18361847f8eSopenharmony_ci
18461847f8eSopenharmony_ci/**
18561847f8eSopenharmony_ci * @enum { number }
18661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
18761847f8eSopenharmony_ci * @atomicservice
18861847f8eSopenharmony_ci * @since 12
18961847f8eSopenharmony_ci */
19061847f8eSopenharmony_cideclare enum DynamicRangeMode {
19161847f8eSopenharmony_ci  /**
19261847f8eSopenharmony_ci   * Allow image content to use an unrestricted extended range.
19361847f8eSopenharmony_ci   *
19461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
19561847f8eSopenharmony_ci   * @atomicservice
19661847f8eSopenharmony_ci   * @since 12
19761847f8eSopenharmony_ci   */
19861847f8eSopenharmony_ci  HIGH = 0,
19961847f8eSopenharmony_ci
20061847f8eSopenharmony_ci  /**
20161847f8eSopenharmony_ci   * Allow image content to use some extended range.
20261847f8eSopenharmony_ci   *
20361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
20461847f8eSopenharmony_ci   * @atomicservice
20561847f8eSopenharmony_ci   * @since 12
20661847f8eSopenharmony_ci   */
20761847f8eSopenharmony_ci  CONSTRAINT = 1,
20861847f8eSopenharmony_ci
20961847f8eSopenharmony_ci  /**
21061847f8eSopenharmony_ci   * Restrict the image content dynamic range to the standard range.
21161847f8eSopenharmony_ci   *
21261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
21361847f8eSopenharmony_ci   * @atomicservice
21461847f8eSopenharmony_ci   * @since 12
21561847f8eSopenharmony_ci   */
21661847f8eSopenharmony_ci  STANDARD = 2,
21761847f8eSopenharmony_ci}
21861847f8eSopenharmony_ci
21961847f8eSopenharmony_ci/**
22061847f8eSopenharmony_ci * @enum { number }
22161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
22261847f8eSopenharmony_ci * @since 7
22361847f8eSopenharmony_ci */
22461847f8eSopenharmony_ci/**
22561847f8eSopenharmony_ci * @enum { number }
22661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
22761847f8eSopenharmony_ci * @form
22861847f8eSopenharmony_ci * @since 9
22961847f8eSopenharmony_ci */
23061847f8eSopenharmony_ci/**
23161847f8eSopenharmony_ci * @enum { number }
23261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
23361847f8eSopenharmony_ci * @crossplatform
23461847f8eSopenharmony_ci * @form
23561847f8eSopenharmony_ci * @since 10
23661847f8eSopenharmony_ci */
23761847f8eSopenharmony_ci/**
23861847f8eSopenharmony_ci * @enum { number }
23961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
24061847f8eSopenharmony_ci * @crossplatform
24161847f8eSopenharmony_ci * @form
24261847f8eSopenharmony_ci * @atomicservice
24361847f8eSopenharmony_ci * @since 11
24461847f8eSopenharmony_ci */
24561847f8eSopenharmony_cideclare enum ImageInterpolation {
24661847f8eSopenharmony_ci  /**
24761847f8eSopenharmony_ci   * Do not use interpolated image data.
24861847f8eSopenharmony_ci   *
24961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25061847f8eSopenharmony_ci   * @since 7
25161847f8eSopenharmony_ci   */
25261847f8eSopenharmony_ci  /**
25361847f8eSopenharmony_ci   * Do not use interpolated image data.
25461847f8eSopenharmony_ci   *
25561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
25661847f8eSopenharmony_ci   * @form
25761847f8eSopenharmony_ci   * @since 9
25861847f8eSopenharmony_ci   */
25961847f8eSopenharmony_ci  /**
26061847f8eSopenharmony_ci   * Do not use interpolated image data.
26161847f8eSopenharmony_ci   *
26261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
26361847f8eSopenharmony_ci   * @crossplatform
26461847f8eSopenharmony_ci   * @form
26561847f8eSopenharmony_ci   * @since 10
26661847f8eSopenharmony_ci   */
26761847f8eSopenharmony_ci  /**
26861847f8eSopenharmony_ci   * Do not use interpolated image data.
26961847f8eSopenharmony_ci   *
27061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
27161847f8eSopenharmony_ci   * @crossplatform
27261847f8eSopenharmony_ci   * @form
27361847f8eSopenharmony_ci   * @atomicservice
27461847f8eSopenharmony_ci   * @since 11
27561847f8eSopenharmony_ci   */
27661847f8eSopenharmony_ci  None,
27761847f8eSopenharmony_ci
27861847f8eSopenharmony_ci  /**
27961847f8eSopenharmony_ci   * Low usage of interpolated image data.
28061847f8eSopenharmony_ci   *
28161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28261847f8eSopenharmony_ci   * @since 7
28361847f8eSopenharmony_ci   */
28461847f8eSopenharmony_ci  /**
28561847f8eSopenharmony_ci   * Low usage of interpolated image data.
28661847f8eSopenharmony_ci   *
28761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
28861847f8eSopenharmony_ci   * @form
28961847f8eSopenharmony_ci   * @since 9
29061847f8eSopenharmony_ci   */
29161847f8eSopenharmony_ci  /**
29261847f8eSopenharmony_ci   * Low usage of interpolated image data.
29361847f8eSopenharmony_ci   *
29461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
29561847f8eSopenharmony_ci   * @crossplatform
29661847f8eSopenharmony_ci   * @form
29761847f8eSopenharmony_ci   * @since 10
29861847f8eSopenharmony_ci   */
29961847f8eSopenharmony_ci  /**
30061847f8eSopenharmony_ci   * Low usage of interpolated image data.
30161847f8eSopenharmony_ci   *
30261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
30361847f8eSopenharmony_ci   * @crossplatform
30461847f8eSopenharmony_ci   * @form
30561847f8eSopenharmony_ci   * @atomicservice
30661847f8eSopenharmony_ci   * @since 11
30761847f8eSopenharmony_ci   */
30861847f8eSopenharmony_ci  Low,
30961847f8eSopenharmony_ci
31061847f8eSopenharmony_ci  /**
31161847f8eSopenharmony_ci   * Interpolated image data is used moderately.
31261847f8eSopenharmony_ci   *
31361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
31461847f8eSopenharmony_ci   * @since 7
31561847f8eSopenharmony_ci   */
31661847f8eSopenharmony_ci  /**
31761847f8eSopenharmony_ci   * Interpolated image data is used moderately.
31861847f8eSopenharmony_ci   *
31961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32061847f8eSopenharmony_ci   * @form
32161847f8eSopenharmony_ci   * @since 9
32261847f8eSopenharmony_ci   */
32361847f8eSopenharmony_ci  /**
32461847f8eSopenharmony_ci   * Interpolated image data is used moderately.
32561847f8eSopenharmony_ci   *
32661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
32761847f8eSopenharmony_ci   * @crossplatform
32861847f8eSopenharmony_ci   * @form
32961847f8eSopenharmony_ci   * @since 10
33061847f8eSopenharmony_ci   */
33161847f8eSopenharmony_ci  /**
33261847f8eSopenharmony_ci   * Interpolated image data is used moderately.
33361847f8eSopenharmony_ci   *
33461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
33561847f8eSopenharmony_ci   * @crossplatform
33661847f8eSopenharmony_ci   * @form
33761847f8eSopenharmony_ci   * @atomicservice
33861847f8eSopenharmony_ci   * @since 11
33961847f8eSopenharmony_ci   */
34061847f8eSopenharmony_ci  Medium,
34161847f8eSopenharmony_ci
34261847f8eSopenharmony_ci  /**
34361847f8eSopenharmony_ci   * High usage of interpolated image data may affect the speed of image rendering.
34461847f8eSopenharmony_ci   *
34561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
34661847f8eSopenharmony_ci   * @since 7
34761847f8eSopenharmony_ci   */
34861847f8eSopenharmony_ci  /**
34961847f8eSopenharmony_ci   * High usage of interpolated image data may affect the speed of image rendering.
35061847f8eSopenharmony_ci   *
35161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35261847f8eSopenharmony_ci   * @form
35361847f8eSopenharmony_ci   * @since 9
35461847f8eSopenharmony_ci   */
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * High usage of interpolated image data may affect the speed of image rendering.
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
35961847f8eSopenharmony_ci   * @crossplatform
36061847f8eSopenharmony_ci   * @form
36161847f8eSopenharmony_ci   * @since 10
36261847f8eSopenharmony_ci   */
36361847f8eSopenharmony_ci  /**
36461847f8eSopenharmony_ci   * High usage of interpolated image data may affect the speed of image rendering.
36561847f8eSopenharmony_ci   *
36661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
36761847f8eSopenharmony_ci   * @crossplatform
36861847f8eSopenharmony_ci   * @form
36961847f8eSopenharmony_ci   * @atomicservice
37061847f8eSopenharmony_ci   * @since 11
37161847f8eSopenharmony_ci   */
37261847f8eSopenharmony_ci  High,
37361847f8eSopenharmony_ci}
37461847f8eSopenharmony_ci
37561847f8eSopenharmony_ci/**
37661847f8eSopenharmony_ci * @interface ImageInterface
37761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
37861847f8eSopenharmony_ci * @since 7
37961847f8eSopenharmony_ci */
38061847f8eSopenharmony_ci/**
38161847f8eSopenharmony_ci * @interface ImageInterface
38261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
38361847f8eSopenharmony_ci * @form
38461847f8eSopenharmony_ci * @since 9
38561847f8eSopenharmony_ci */
38661847f8eSopenharmony_ci/**
38761847f8eSopenharmony_ci * @interface ImageInterface
38861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
38961847f8eSopenharmony_ci * @crossplatform
39061847f8eSopenharmony_ci * @form
39161847f8eSopenharmony_ci * @since 10
39261847f8eSopenharmony_ci */
39361847f8eSopenharmony_ci/**
39461847f8eSopenharmony_ci * @interface ImageInterface
39561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
39661847f8eSopenharmony_ci * @crossplatform
39761847f8eSopenharmony_ci * @form
39861847f8eSopenharmony_ci * @atomicservice
39961847f8eSopenharmony_ci * @since 11
40061847f8eSopenharmony_ci */
40161847f8eSopenharmony_ciinterface ImageInterface {
40261847f8eSopenharmony_ci  /**
40361847f8eSopenharmony_ci   * Set src to obtain images.
40461847f8eSopenharmony_ci   *
40561847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor } src
40661847f8eSopenharmony_ci   * @returns { ImageAttribute }
40761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
40861847f8eSopenharmony_ci   * @since 7
40961847f8eSopenharmony_ci   */
41061847f8eSopenharmony_ci  /**
41161847f8eSopenharmony_ci   * Set src to obtain images
41261847f8eSopenharmony_ci   *
41361847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor } src
41461847f8eSopenharmony_ci   * @returns { ImageAttribute }
41561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
41661847f8eSopenharmony_ci   * @form
41761847f8eSopenharmony_ci   * @since 9
41861847f8eSopenharmony_ci   */
41961847f8eSopenharmony_ci  /**
42061847f8eSopenharmony_ci   * Set src to obtain images
42161847f8eSopenharmony_ci   *
42261847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor } src
42361847f8eSopenharmony_ci   * @returns { ImageAttribute }
42461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
42561847f8eSopenharmony_ci   * @crossplatform
42661847f8eSopenharmony_ci   * @form
42761847f8eSopenharmony_ci   * @since 10
42861847f8eSopenharmony_ci   */
42961847f8eSopenharmony_ci  /**
43061847f8eSopenharmony_ci   * Set src to obtain images
43161847f8eSopenharmony_ci   *
43261847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor } src
43361847f8eSopenharmony_ci   * @returns { ImageAttribute }
43461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
43561847f8eSopenharmony_ci   * @crossplatform
43661847f8eSopenharmony_ci   * @form
43761847f8eSopenharmony_ci   * @atomicservice
43861847f8eSopenharmony_ci   * @since 11
43961847f8eSopenharmony_ci   */
44061847f8eSopenharmony_ci  (src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute;
44161847f8eSopenharmony_ci
44261847f8eSopenharmony_ci  /**
44361847f8eSopenharmony_ci   * Set src to obtain images
44461847f8eSopenharmony_ci   *
44561847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src
44661847f8eSopenharmony_ci   * @returns { ImageAttribute }
44761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
44861847f8eSopenharmony_ci   * @crossplatform
44961847f8eSopenharmony_ci   * @form
45061847f8eSopenharmony_ci   * @atomicservice
45161847f8eSopenharmony_ci   * @since 12
45261847f8eSopenharmony_ci   */
45361847f8eSopenharmony_ci  (src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute;
45461847f8eSopenharmony_ci
45561847f8eSopenharmony_ci  /**
45661847f8eSopenharmony_ci   * Set src and ai options to obtain images
45761847f8eSopenharmony_ci   *
45861847f8eSopenharmony_ci   * @param { PixelMap | ResourceStr | DrawableDescriptor } src
45961847f8eSopenharmony_ci   * @param { ImageAIOptions } imageAIOptions
46061847f8eSopenharmony_ci   * @returns { ImageAttribute }
46161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
46261847f8eSopenharmony_ci   * @atomicservice
46361847f8eSopenharmony_ci   * @since 12
46461847f8eSopenharmony_ci   */
46561847f8eSopenharmony_ci  (src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute;
46661847f8eSopenharmony_ci}
46761847f8eSopenharmony_ci
46861847f8eSopenharmony_ci/**
46961847f8eSopenharmony_ci * Defines source size of image.
47061847f8eSopenharmony_ci *
47161847f8eSopenharmony_ci * @interface ImageSourceSize
47261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
47361847f8eSopenharmony_ci * @crossplatform
47461847f8eSopenharmony_ci * @form
47561847f8eSopenharmony_ci * @atomicservice
47661847f8eSopenharmony_ci * @since 14
47761847f8eSopenharmony_ci */
47861847f8eSopenharmony_ci
47961847f8eSopenharmony_ciinterface ImageSourceSize {
48061847f8eSopenharmony_ci  /**
48161847f8eSopenharmony_ci   * Set width.
48261847f8eSopenharmony_ci   *
48361847f8eSopenharmony_ci   * @type { number }
48461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
48561847f8eSopenharmony_ci   * @since 7
48661847f8eSopenharmony_ci   */
48761847f8eSopenharmony_ci  /**
48861847f8eSopenharmony_ci   * Set width.
48961847f8eSopenharmony_ci   *
49061847f8eSopenharmony_ci   * @type { number }
49161847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
49261847f8eSopenharmony_ci   * @form
49361847f8eSopenharmony_ci   * @since 9
49461847f8eSopenharmony_ci   */
49561847f8eSopenharmony_ci  /**
49661847f8eSopenharmony_ci   * Set width.
49761847f8eSopenharmony_ci   *
49861847f8eSopenharmony_ci   * @type { number }
49961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50061847f8eSopenharmony_ci   * @crossplatform
50161847f8eSopenharmony_ci   * @form
50261847f8eSopenharmony_ci   * @since 10
50361847f8eSopenharmony_ci   */
50461847f8eSopenharmony_ci  /**
50561847f8eSopenharmony_ci   * Set width.
50661847f8eSopenharmony_ci   *
50761847f8eSopenharmony_ci   * @type { number }
50861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
50961847f8eSopenharmony_ci   * @crossplatform
51061847f8eSopenharmony_ci   * @form
51161847f8eSopenharmony_ci   * @atomicservice
51261847f8eSopenharmony_ci   * @since 11
51361847f8eSopenharmony_ci   */
51461847f8eSopenharmony_ci  width: number;
51561847f8eSopenharmony_ci
51661847f8eSopenharmony_ci  /**
51761847f8eSopenharmony_ci   * Set height.
51861847f8eSopenharmony_ci   *
51961847f8eSopenharmony_ci   * @type { number }
52061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52161847f8eSopenharmony_ci   * @since 7
52261847f8eSopenharmony_ci   */
52361847f8eSopenharmony_ci  /**
52461847f8eSopenharmony_ci   * Set height.
52561847f8eSopenharmony_ci   *
52661847f8eSopenharmony_ci   * @type { number }
52761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
52861847f8eSopenharmony_ci   * @form
52961847f8eSopenharmony_ci   * @since 9
53061847f8eSopenharmony_ci   */
53161847f8eSopenharmony_ci  /**
53261847f8eSopenharmony_ci   * Set height.
53361847f8eSopenharmony_ci   *
53461847f8eSopenharmony_ci   * @type { number }
53561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
53661847f8eSopenharmony_ci   * @crossplatform
53761847f8eSopenharmony_ci   * @form
53861847f8eSopenharmony_ci   * @since 10
53961847f8eSopenharmony_ci   */
54061847f8eSopenharmony_ci  /**
54161847f8eSopenharmony_ci   * Set height.
54261847f8eSopenharmony_ci   *
54361847f8eSopenharmony_ci   * @type { number }
54461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
54561847f8eSopenharmony_ci   * @crossplatform
54661847f8eSopenharmony_ci   * @form
54761847f8eSopenharmony_ci   * @atomicservice
54861847f8eSopenharmony_ci   * @since 11
54961847f8eSopenharmony_ci   */
55061847f8eSopenharmony_ci  height: number;
55161847f8eSopenharmony_ci}
55261847f8eSopenharmony_ci
55361847f8eSopenharmony_ci/**
55461847f8eSopenharmony_ci * @extends CommonMethod<ImageAttribute>
55561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
55661847f8eSopenharmony_ci * @since 7
55761847f8eSopenharmony_ci */
55861847f8eSopenharmony_ci/**
55961847f8eSopenharmony_ci * @extends CommonMethod<ImageAttribute>
56061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
56161847f8eSopenharmony_ci * @form
56261847f8eSopenharmony_ci * @since 9
56361847f8eSopenharmony_ci */
56461847f8eSopenharmony_ci/**
56561847f8eSopenharmony_ci * @extends CommonMethod<ImageAttribute>
56661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
56761847f8eSopenharmony_ci * @crossplatform
56861847f8eSopenharmony_ci * @form
56961847f8eSopenharmony_ci * @since 10
57061847f8eSopenharmony_ci */
57161847f8eSopenharmony_ci/**
57261847f8eSopenharmony_ci * @extends CommonMethod<ImageAttribute>
57361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
57461847f8eSopenharmony_ci * @crossplatform
57561847f8eSopenharmony_ci * @form
57661847f8eSopenharmony_ci * @atomicservice
57761847f8eSopenharmony_ci * @since 11
57861847f8eSopenharmony_ci */
57961847f8eSopenharmony_cideclare class ImageAttribute extends CommonMethod<ImageAttribute> {
58061847f8eSopenharmony_ci  /**
58161847f8eSopenharmony_ci   * Placeholder displayed on load
58261847f8eSopenharmony_ci   *
58361847f8eSopenharmony_ci   * @param { string | Resource } value
58461847f8eSopenharmony_ci   * @returns { ImageAttribute }
58561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
58661847f8eSopenharmony_ci   * @since 7
58761847f8eSopenharmony_ci   */
58861847f8eSopenharmony_ci  /**
58961847f8eSopenharmony_ci   * Placeholder displayed on load
59061847f8eSopenharmony_ci   *
59161847f8eSopenharmony_ci   * @param { string | Resource } value
59261847f8eSopenharmony_ci   * @returns { ImageAttribute }
59361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
59461847f8eSopenharmony_ci   * @form
59561847f8eSopenharmony_ci   * @since 9
59661847f8eSopenharmony_ci   */
59761847f8eSopenharmony_ci  /**
59861847f8eSopenharmony_ci   * Placeholder displayed on load
59961847f8eSopenharmony_ci   *
60061847f8eSopenharmony_ci   * @param { string | Resource } value
60161847f8eSopenharmony_ci   * @returns { ImageAttribute }
60261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
60361847f8eSopenharmony_ci   * @crossplatform
60461847f8eSopenharmony_ci   * @form
60561847f8eSopenharmony_ci   * @since 10
60661847f8eSopenharmony_ci   */
60761847f8eSopenharmony_ci  /**
60861847f8eSopenharmony_ci   * Placeholder displayed on load
60961847f8eSopenharmony_ci   *
61061847f8eSopenharmony_ci   * @param { string | Resource } value
61161847f8eSopenharmony_ci   * @returns { ImageAttribute }
61261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
61361847f8eSopenharmony_ci   * @crossplatform
61461847f8eSopenharmony_ci   * @form
61561847f8eSopenharmony_ci   * @atomicservice
61661847f8eSopenharmony_ci   * @since 11
61761847f8eSopenharmony_ci   */
61861847f8eSopenharmony_ci  /**
61961847f8eSopenharmony_ci   * Placeholder displayed on load
62061847f8eSopenharmony_ci   *
62161847f8eSopenharmony_ci   * @param { string | Resource | PixelMap } value
62261847f8eSopenharmony_ci   * @returns { ImageAttribute }
62361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
62461847f8eSopenharmony_ci   * @crossplatform
62561847f8eSopenharmony_ci   * @form
62661847f8eSopenharmony_ci   * @atomicservice
62761847f8eSopenharmony_ci   * @since 12
62861847f8eSopenharmony_ci   */
62961847f8eSopenharmony_ci  alt(value: string | Resource | PixelMap): ImageAttribute;
63061847f8eSopenharmony_ci
63161847f8eSopenharmony_ci  /**
63261847f8eSopenharmony_ci   * match Text Direction
63361847f8eSopenharmony_ci   *
63461847f8eSopenharmony_ci   * @param { boolean } value
63561847f8eSopenharmony_ci   * @returns { ImageAttribute }
63661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
63761847f8eSopenharmony_ci   * @since 7
63861847f8eSopenharmony_ci   */
63961847f8eSopenharmony_ci  /**
64061847f8eSopenharmony_ci   * match Text Direction
64161847f8eSopenharmony_ci   *
64261847f8eSopenharmony_ci   * @param { boolean } value
64361847f8eSopenharmony_ci   * @returns { ImageAttribute }
64461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
64561847f8eSopenharmony_ci   * @form
64661847f8eSopenharmony_ci   * @since 9
64761847f8eSopenharmony_ci   */
64861847f8eSopenharmony_ci  /**
64961847f8eSopenharmony_ci   * match Text Direction
65061847f8eSopenharmony_ci   *
65161847f8eSopenharmony_ci   * @param { boolean } value
65261847f8eSopenharmony_ci   * @returns { ImageAttribute }
65361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
65461847f8eSopenharmony_ci   * @crossplatform
65561847f8eSopenharmony_ci   * @form
65661847f8eSopenharmony_ci   * @since 10
65761847f8eSopenharmony_ci   */
65861847f8eSopenharmony_ci  /**
65961847f8eSopenharmony_ci   * match Text Direction
66061847f8eSopenharmony_ci   *
66161847f8eSopenharmony_ci   * @param { boolean } value
66261847f8eSopenharmony_ci   * @returns { ImageAttribute }
66361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
66461847f8eSopenharmony_ci   * @crossplatform
66561847f8eSopenharmony_ci   * @form
66661847f8eSopenharmony_ci   * @atomicservice
66761847f8eSopenharmony_ci   * @since 11
66861847f8eSopenharmony_ci   */
66961847f8eSopenharmony_ci  matchTextDirection(value: boolean): ImageAttribute;
67061847f8eSopenharmony_ci
67161847f8eSopenharmony_ci  /**
67261847f8eSopenharmony_ci   * Sets whether the display size of the image follows the source size.
67361847f8eSopenharmony_ci   *
67461847f8eSopenharmony_ci   * @param { boolean } value
67561847f8eSopenharmony_ci   * @returns { ImageAttribute }
67661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
67761847f8eSopenharmony_ci   * @since 7
67861847f8eSopenharmony_ci   */
67961847f8eSopenharmony_ci  /**
68061847f8eSopenharmony_ci   * Sets whether the display size of the image follows the source size.
68161847f8eSopenharmony_ci   *
68261847f8eSopenharmony_ci   * @param { boolean } value
68361847f8eSopenharmony_ci   * @returns { ImageAttribute }
68461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
68561847f8eSopenharmony_ci   * @form
68661847f8eSopenharmony_ci   * @since 9
68761847f8eSopenharmony_ci   */
68861847f8eSopenharmony_ci  /**
68961847f8eSopenharmony_ci   * Sets whether the display size of the image follows the source size.
69061847f8eSopenharmony_ci   *
69161847f8eSopenharmony_ci   * @param { boolean } value
69261847f8eSopenharmony_ci   * @returns { ImageAttribute }
69361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
69461847f8eSopenharmony_ci   * @crossplatform
69561847f8eSopenharmony_ci   * @form
69661847f8eSopenharmony_ci   * @since 10
69761847f8eSopenharmony_ci   */
69861847f8eSopenharmony_ci  /**
69961847f8eSopenharmony_ci   * Sets whether the display size of the image follows the source size.
70061847f8eSopenharmony_ci   *
70161847f8eSopenharmony_ci   * @param { boolean } value
70261847f8eSopenharmony_ci   * @returns { ImageAttribute }
70361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
70461847f8eSopenharmony_ci   * @crossplatform
70561847f8eSopenharmony_ci   * @form
70661847f8eSopenharmony_ci   * @atomicservice
70761847f8eSopenharmony_ci   * @since 11
70861847f8eSopenharmony_ci   */
70961847f8eSopenharmony_ci  fitOriginalSize(value: boolean): ImageAttribute;
71061847f8eSopenharmony_ci
71161847f8eSopenharmony_ci  /**
71261847f8eSopenharmony_ci   * fill Color
71361847f8eSopenharmony_ci   *
71461847f8eSopenharmony_ci   * @param { ResourceColor } value
71561847f8eSopenharmony_ci   * @returns { ImageAttribute }
71661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
71761847f8eSopenharmony_ci   * @since 7
71861847f8eSopenharmony_ci   */
71961847f8eSopenharmony_ci  /**
72061847f8eSopenharmony_ci   * fill Color
72161847f8eSopenharmony_ci   *
72261847f8eSopenharmony_ci   * @param { ResourceColor } value
72361847f8eSopenharmony_ci   * @returns { ImageAttribute }
72461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
72561847f8eSopenharmony_ci   * @form
72661847f8eSopenharmony_ci   * @since 9
72761847f8eSopenharmony_ci   */
72861847f8eSopenharmony_ci  /**
72961847f8eSopenharmony_ci   * fill Color
73061847f8eSopenharmony_ci   *
73161847f8eSopenharmony_ci   * @param { ResourceColor } value
73261847f8eSopenharmony_ci   * @returns { ImageAttribute }
73361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
73461847f8eSopenharmony_ci   * @crossplatform
73561847f8eSopenharmony_ci   * @form
73661847f8eSopenharmony_ci   * @since 10
73761847f8eSopenharmony_ci   */
73861847f8eSopenharmony_ci  /**
73961847f8eSopenharmony_ci   * fill Color
74061847f8eSopenharmony_ci   *
74161847f8eSopenharmony_ci   * @param { ResourceColor } value
74261847f8eSopenharmony_ci   * @returns { ImageAttribute }
74361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
74461847f8eSopenharmony_ci   * @crossplatform
74561847f8eSopenharmony_ci   * @form
74661847f8eSopenharmony_ci   * @atomicservice
74761847f8eSopenharmony_ci   * @since 11
74861847f8eSopenharmony_ci   */
74961847f8eSopenharmony_ci  fillColor(value: ResourceColor): ImageAttribute;
75061847f8eSopenharmony_ci
75161847f8eSopenharmony_ci  /**
75261847f8eSopenharmony_ci   * Sets the zoom type of an image.
75361847f8eSopenharmony_ci   *
75461847f8eSopenharmony_ci   * @param { ImageFit } value
75561847f8eSopenharmony_ci   * @returns { ImageAttribute }
75661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
75761847f8eSopenharmony_ci   * @since 7
75861847f8eSopenharmony_ci   */
75961847f8eSopenharmony_ci  /**
76061847f8eSopenharmony_ci   * Sets the zoom type of an image.
76161847f8eSopenharmony_ci   *
76261847f8eSopenharmony_ci   * @param { ImageFit } value
76361847f8eSopenharmony_ci   * @returns { ImageAttribute }
76461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
76561847f8eSopenharmony_ci   * @form
76661847f8eSopenharmony_ci   * @since 9
76761847f8eSopenharmony_ci   */
76861847f8eSopenharmony_ci  /**
76961847f8eSopenharmony_ci   * Sets the zoom type of an image.
77061847f8eSopenharmony_ci   *
77161847f8eSopenharmony_ci   * @param { ImageFit } value
77261847f8eSopenharmony_ci   * @returns { ImageAttribute }
77361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
77461847f8eSopenharmony_ci   * @crossplatform
77561847f8eSopenharmony_ci   * @form
77661847f8eSopenharmony_ci   * @since 10
77761847f8eSopenharmony_ci   */
77861847f8eSopenharmony_ci  /**
77961847f8eSopenharmony_ci   * Sets the zoom type of an image.
78061847f8eSopenharmony_ci   *
78161847f8eSopenharmony_ci   * @param { ImageFit } value
78261847f8eSopenharmony_ci   * @returns { ImageAttribute }
78361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
78461847f8eSopenharmony_ci   * @crossplatform
78561847f8eSopenharmony_ci   * @form
78661847f8eSopenharmony_ci   * @atomicservice
78761847f8eSopenharmony_ci   * @since 11
78861847f8eSopenharmony_ci   */
78961847f8eSopenharmony_ci  objectFit(value: ImageFit): ImageAttribute;
79061847f8eSopenharmony_ci
79161847f8eSopenharmony_ci  /**
79261847f8eSopenharmony_ci   * Set the repeat style of the picture
79361847f8eSopenharmony_ci   *
79461847f8eSopenharmony_ci   * @param { ImageRepeat } value
79561847f8eSopenharmony_ci   * @returns { ImageAttribute }
79661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
79761847f8eSopenharmony_ci   * @since 7
79861847f8eSopenharmony_ci   */
79961847f8eSopenharmony_ci  /**
80061847f8eSopenharmony_ci   * Set the repeat style of the picture
80161847f8eSopenharmony_ci   *
80261847f8eSopenharmony_ci   * @param { ImageRepeat } value
80361847f8eSopenharmony_ci   * @returns { ImageAttribute }
80461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
80561847f8eSopenharmony_ci   * @form
80661847f8eSopenharmony_ci   * @since 9
80761847f8eSopenharmony_ci   */
80861847f8eSopenharmony_ci  /**
80961847f8eSopenharmony_ci   * Set the repeat style of the picture
81061847f8eSopenharmony_ci   *
81161847f8eSopenharmony_ci   * @param { ImageRepeat } value
81261847f8eSopenharmony_ci   * @returns { ImageAttribute }
81361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
81461847f8eSopenharmony_ci   * @crossplatform
81561847f8eSopenharmony_ci   * @form
81661847f8eSopenharmony_ci   * @since 10
81761847f8eSopenharmony_ci   */
81861847f8eSopenharmony_ci  /**
81961847f8eSopenharmony_ci   * Set the repeat style of the picture
82061847f8eSopenharmony_ci   *
82161847f8eSopenharmony_ci   * @param { ImageRepeat } value
82261847f8eSopenharmony_ci   * @returns { ImageAttribute }
82361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
82461847f8eSopenharmony_ci   * @crossplatform
82561847f8eSopenharmony_ci   * @form
82661847f8eSopenharmony_ci   * @atomicservice
82761847f8eSopenharmony_ci   * @since 11
82861847f8eSopenharmony_ci   */
82961847f8eSopenharmony_ci  objectRepeat(value: ImageRepeat): ImageAttribute;
83061847f8eSopenharmony_ci
83161847f8eSopenharmony_ci  /**
83261847f8eSopenharmony_ci   * Set the auto style of the picture
83361847f8eSopenharmony_ci   *
83461847f8eSopenharmony_ci   * @param { boolean } value
83561847f8eSopenharmony_ci   * @returns { ImageAttribute }
83661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
83761847f8eSopenharmony_ci   * @since 7
83861847f8eSopenharmony_ci   */
83961847f8eSopenharmony_ci  /**
84061847f8eSopenharmony_ci   * Set the auto style of the picture
84161847f8eSopenharmony_ci   *
84261847f8eSopenharmony_ci   * @param { boolean } value
84361847f8eSopenharmony_ci   * @returns { ImageAttribute }
84461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
84561847f8eSopenharmony_ci   * @form
84661847f8eSopenharmony_ci   * @since 9
84761847f8eSopenharmony_ci   */
84861847f8eSopenharmony_ci  /**
84961847f8eSopenharmony_ci   * Set the auto style of the picture
85061847f8eSopenharmony_ci   *
85161847f8eSopenharmony_ci   * @param { boolean } value
85261847f8eSopenharmony_ci   * @returns { ImageAttribute }
85361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
85461847f8eSopenharmony_ci   * @crossplatform
85561847f8eSopenharmony_ci   * @form
85661847f8eSopenharmony_ci   * @since 10
85761847f8eSopenharmony_ci   */
85861847f8eSopenharmony_ci  /**
85961847f8eSopenharmony_ci   * Set the auto style of the picture
86061847f8eSopenharmony_ci   *
86161847f8eSopenharmony_ci   * @param { boolean } value
86261847f8eSopenharmony_ci   * @returns { ImageAttribute }
86361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
86461847f8eSopenharmony_ci   * @crossplatform
86561847f8eSopenharmony_ci   * @form
86661847f8eSopenharmony_ci   * @atomicservice
86761847f8eSopenharmony_ci   * @since 11
86861847f8eSopenharmony_ci   */
86961847f8eSopenharmony_ci  autoResize(value: boolean): ImageAttribute;
87061847f8eSopenharmony_ci
87161847f8eSopenharmony_ci  /**
87261847f8eSopenharmony_ci   * Sets the image rendering mode.
87361847f8eSopenharmony_ci   *
87461847f8eSopenharmony_ci   * @param { ImageRenderMode } value
87561847f8eSopenharmony_ci   * @returns { ImageAttribute }
87661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
87761847f8eSopenharmony_ci   * @since 7
87861847f8eSopenharmony_ci   */
87961847f8eSopenharmony_ci  /**
88061847f8eSopenharmony_ci   * Sets the image rendering mode.
88161847f8eSopenharmony_ci   *
88261847f8eSopenharmony_ci   * @param { ImageRenderMode } value
88361847f8eSopenharmony_ci   * @returns { ImageAttribute }
88461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
88561847f8eSopenharmony_ci   * @form
88661847f8eSopenharmony_ci   * @since 9
88761847f8eSopenharmony_ci   */
88861847f8eSopenharmony_ci  /**
88961847f8eSopenharmony_ci   * Sets the image rendering mode.
89061847f8eSopenharmony_ci   *
89161847f8eSopenharmony_ci   * @param { ImageRenderMode } value
89261847f8eSopenharmony_ci   * @returns { ImageAttribute }
89361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
89461847f8eSopenharmony_ci   * @crossplatform
89561847f8eSopenharmony_ci   * @form
89661847f8eSopenharmony_ci   * @since 10
89761847f8eSopenharmony_ci   */
89861847f8eSopenharmony_ci  /**
89961847f8eSopenharmony_ci   * Sets the image rendering mode.
90061847f8eSopenharmony_ci   *
90161847f8eSopenharmony_ci   * @param { ImageRenderMode } value
90261847f8eSopenharmony_ci   * @returns { ImageAttribute }
90361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
90461847f8eSopenharmony_ci   * @crossplatform
90561847f8eSopenharmony_ci   * @form
90661847f8eSopenharmony_ci   * @atomicservice
90761847f8eSopenharmony_ci   * @since 11
90861847f8eSopenharmony_ci   */
90961847f8eSopenharmony_ci  renderMode(value: ImageRenderMode): ImageAttribute;
91061847f8eSopenharmony_ci
91161847f8eSopenharmony_ci  /**
91261847f8eSopenharmony_ci   * Set dynamic range mode of image.
91361847f8eSopenharmony_ci   *
91461847f8eSopenharmony_ci   * @param { DynamicRangeMode } value - Indicates the resizable options.
91561847f8eSopenharmony_ci   * @returns { ImageAttribute } Returns the instance of the ImageAttribute.
91661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
91761847f8eSopenharmony_ci   * @atomicservice
91861847f8eSopenharmony_ci   * @since 12
91961847f8eSopenharmony_ci   */
92061847f8eSopenharmony_ci  dynamicRangeMode(value: DynamicRangeMode): ImageAttribute;
92161847f8eSopenharmony_ci
92261847f8eSopenharmony_ci  /**
92361847f8eSopenharmony_ci   * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image.
92461847f8eSopenharmony_ci   *
92561847f8eSopenharmony_ci   * @param { ImageInterpolation } value
92661847f8eSopenharmony_ci   * @returns { ImageAttribute }
92761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
92861847f8eSopenharmony_ci   * @since 7
92961847f8eSopenharmony_ci   */
93061847f8eSopenharmony_ci  /**
93161847f8eSopenharmony_ci   * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image.
93261847f8eSopenharmony_ci   *
93361847f8eSopenharmony_ci   * @param { ImageInterpolation } value
93461847f8eSopenharmony_ci   * @returns { ImageAttribute }
93561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
93661847f8eSopenharmony_ci   * @form
93761847f8eSopenharmony_ci   * @since 9
93861847f8eSopenharmony_ci   */
93961847f8eSopenharmony_ci  /**
94061847f8eSopenharmony_ci   * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image.
94161847f8eSopenharmony_ci   *
94261847f8eSopenharmony_ci   * @param { ImageInterpolation } value
94361847f8eSopenharmony_ci   * @returns { ImageAttribute }
94461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
94561847f8eSopenharmony_ci   * @crossplatform
94661847f8eSopenharmony_ci   * @form
94761847f8eSopenharmony_ci   * @since 10
94861847f8eSopenharmony_ci   */
94961847f8eSopenharmony_ci  /**
95061847f8eSopenharmony_ci   * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image.
95161847f8eSopenharmony_ci   *
95261847f8eSopenharmony_ci   * @param { ImageInterpolation } value
95361847f8eSopenharmony_ci   * @returns { ImageAttribute }
95461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
95561847f8eSopenharmony_ci   * @crossplatform
95661847f8eSopenharmony_ci   * @form
95761847f8eSopenharmony_ci   * @atomicservice
95861847f8eSopenharmony_ci   * @since 11
95961847f8eSopenharmony_ci   */
96061847f8eSopenharmony_ci  interpolation(value: ImageInterpolation): ImageAttribute;
96161847f8eSopenharmony_ci
96261847f8eSopenharmony_ci  /**
96361847f8eSopenharmony_ci   * Specifies the picture decoding size.
96461847f8eSopenharmony_ci   * The original picture is decoded into a picture of a specified size. The unit of the number type is px.
96561847f8eSopenharmony_ci   *
96661847f8eSopenharmony_ci   * @param { object } value
96761847f8eSopenharmony_ci   * @returns { ImageAttribute }
96861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
96961847f8eSopenharmony_ci   * @since 7
97061847f8eSopenharmony_ci   */
97161847f8eSopenharmony_ci  /**
97261847f8eSopenharmony_ci   * Specifies the picture decoding size.
97361847f8eSopenharmony_ci   * The original picture is decoded into a picture of a specified size. The unit of the number type is px.
97461847f8eSopenharmony_ci   *
97561847f8eSopenharmony_ci   * @param { object } value
97661847f8eSopenharmony_ci   * @returns { ImageAttribute }
97761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
97861847f8eSopenharmony_ci   * @form
97961847f8eSopenharmony_ci   * @since 9
98061847f8eSopenharmony_ci   */
98161847f8eSopenharmony_ci  /**
98261847f8eSopenharmony_ci   * Specifies the picture decoding size.
98361847f8eSopenharmony_ci   * The original picture is decoded into a picture of a specified size. The unit of the number type is px.
98461847f8eSopenharmony_ci   *
98561847f8eSopenharmony_ci   * @param { object } value
98661847f8eSopenharmony_ci   * @returns { ImageAttribute }
98761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
98861847f8eSopenharmony_ci   * @crossplatform
98961847f8eSopenharmony_ci   * @form
99061847f8eSopenharmony_ci   * @since 10
99161847f8eSopenharmony_ci   */
99261847f8eSopenharmony_ci  /**
99361847f8eSopenharmony_ci   * Specifies the picture decoding size.
99461847f8eSopenharmony_ci   * The original picture is decoded into a picture of a specified size. The unit of the number type is px.
99561847f8eSopenharmony_ci   *
99661847f8eSopenharmony_ci   * @param { object } value
99761847f8eSopenharmony_ci   * @returns { ImageAttribute }
99861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
99961847f8eSopenharmony_ci   * @crossplatform
100061847f8eSopenharmony_ci   * @form
100161847f8eSopenharmony_ci   * @atomicservice
100261847f8eSopenharmony_ci   * @since 11
100361847f8eSopenharmony_ci   */
100461847f8eSopenharmony_ci  /**
100561847f8eSopenharmony_ci   * Specifies the picture decoding size.
100661847f8eSopenharmony_ci   * The original picture is decoded into a picture of a specified size. The unit of the number type is px.
100761847f8eSopenharmony_ci   *
100861847f8eSopenharmony_ci   * @param { ImageSourceSize } value - Image source size.
100961847f8eSopenharmony_ci   * @returns { ImageAttribute }
101061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
101161847f8eSopenharmony_ci   * @crossplatform
101261847f8eSopenharmony_ci   * @form
101361847f8eSopenharmony_ci   * @atomicservice
101461847f8eSopenharmony_ci   * @since 14
101561847f8eSopenharmony_ci   */
101661847f8eSopenharmony_ci  sourceSize(value: ImageSourceSize): ImageAttribute;
101761847f8eSopenharmony_ci
101861847f8eSopenharmony_ci  /**
101961847f8eSopenharmony_ci   * Sets the synchronous or asynchronous mode for image loading.
102061847f8eSopenharmony_ci   * The default parameter type is bool, and the default value is false.
102161847f8eSopenharmony_ci   *
102261847f8eSopenharmony_ci   * @param { boolean } value
102361847f8eSopenharmony_ci   * @returns { ImageAttribute }
102461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
102561847f8eSopenharmony_ci   * @since 8
102661847f8eSopenharmony_ci   */
102761847f8eSopenharmony_ci  /**
102861847f8eSopenharmony_ci   * Sets the synchronous or asynchronous mode for image loading.
102961847f8eSopenharmony_ci   * The default parameter type is bool, and the default value is false.
103061847f8eSopenharmony_ci   *
103161847f8eSopenharmony_ci   * @param { boolean } value
103261847f8eSopenharmony_ci   * @returns { ImageAttribute }
103361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
103461847f8eSopenharmony_ci   * @form
103561847f8eSopenharmony_ci   * @since 9
103661847f8eSopenharmony_ci   */
103761847f8eSopenharmony_ci  /**
103861847f8eSopenharmony_ci   * Sets the synchronous or asynchronous mode for image loading.
103961847f8eSopenharmony_ci   * The default parameter type is bool, and the default value is false.
104061847f8eSopenharmony_ci   *
104161847f8eSopenharmony_ci   * @param { boolean } value
104261847f8eSopenharmony_ci   * @returns { ImageAttribute }
104361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
104461847f8eSopenharmony_ci   * @crossplatform
104561847f8eSopenharmony_ci   * @form
104661847f8eSopenharmony_ci   * @since 10
104761847f8eSopenharmony_ci   */
104861847f8eSopenharmony_ci  /**
104961847f8eSopenharmony_ci   * Sets the synchronous or asynchronous mode for image loading.
105061847f8eSopenharmony_ci   * The default parameter type is bool, and the default value is false.
105161847f8eSopenharmony_ci   *
105261847f8eSopenharmony_ci   * @param { boolean } value
105361847f8eSopenharmony_ci   * @returns { ImageAttribute }
105461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
105561847f8eSopenharmony_ci   * @crossplatform
105661847f8eSopenharmony_ci   * @form
105761847f8eSopenharmony_ci   * @atomicservice
105861847f8eSopenharmony_ci   * @since 11
105961847f8eSopenharmony_ci   */
106061847f8eSopenharmony_ci  syncLoad(value: boolean): ImageAttribute;
106161847f8eSopenharmony_ci
106261847f8eSopenharmony_ci  /**
106361847f8eSopenharmony_ci   * Sets the color filter effect on the image.
106461847f8eSopenharmony_ci   *
106561847f8eSopenharmony_ci   * @param { ColorFilter } value ColorFilter object.
106661847f8eSopenharmony_ci   * @returns { ImageAttribute }
106761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
106861847f8eSopenharmony_ci   * @form
106961847f8eSopenharmony_ci   * @since 9
107061847f8eSopenharmony_ci   */
107161847f8eSopenharmony_ci  /**
107261847f8eSopenharmony_ci   * Sets the color filter effect on the image.
107361847f8eSopenharmony_ci   *
107461847f8eSopenharmony_ci   * @param { ColorFilter } value ColorFilter object.
107561847f8eSopenharmony_ci   * @returns { ImageAttribute }
107661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
107761847f8eSopenharmony_ci   * @crossplatform
107861847f8eSopenharmony_ci   * @form
107961847f8eSopenharmony_ci   * @since 10
108061847f8eSopenharmony_ci   */
108161847f8eSopenharmony_ci  /**
108261847f8eSopenharmony_ci   * Sets the color filter effect on the image.
108361847f8eSopenharmony_ci   *
108461847f8eSopenharmony_ci   * @param { ColorFilter } value ColorFilter object.
108561847f8eSopenharmony_ci   * @returns { ImageAttribute }
108661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
108761847f8eSopenharmony_ci   * @crossplatform
108861847f8eSopenharmony_ci   * @form
108961847f8eSopenharmony_ci   * @atomicservice
109061847f8eSopenharmony_ci   * @since 11
109161847f8eSopenharmony_ci   */
109261847f8eSopenharmony_ci  /**
109361847f8eSopenharmony_ci   * Sets the color filter effect on the image.
109461847f8eSopenharmony_ci   *
109561847f8eSopenharmony_ci   * @param { ColorFilter | DrawingColorFilter } value ColorFilter object.
109661847f8eSopenharmony_ci   * @returns { ImageAttribute }
109761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
109861847f8eSopenharmony_ci   * @crossplatform
109961847f8eSopenharmony_ci   * @form
110061847f8eSopenharmony_ci   * @atomicservice
110161847f8eSopenharmony_ci   * @since 12
110261847f8eSopenharmony_ci   */
110361847f8eSopenharmony_ci  colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute;
110461847f8eSopenharmony_ci
110561847f8eSopenharmony_ci  /**
110661847f8eSopenharmony_ci   * Allow replication.
110761847f8eSopenharmony_ci   *
110861847f8eSopenharmony_ci   * @param { CopyOptions } value
110961847f8eSopenharmony_ci   * @returns { ImageAttribute }
111061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
111161847f8eSopenharmony_ci   * @form
111261847f8eSopenharmony_ci   * @since 9
111361847f8eSopenharmony_ci   */
111461847f8eSopenharmony_ci  /**
111561847f8eSopenharmony_ci   * Allow replication.
111661847f8eSopenharmony_ci   *
111761847f8eSopenharmony_ci   * @param { CopyOptions } value
111861847f8eSopenharmony_ci   * @returns { ImageAttribute }
111961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
112061847f8eSopenharmony_ci   * @crossplatform
112161847f8eSopenharmony_ci   * @form
112261847f8eSopenharmony_ci   * @since 10
112361847f8eSopenharmony_ci   */
112461847f8eSopenharmony_ci  /**
112561847f8eSopenharmony_ci   * Allow replication.
112661847f8eSopenharmony_ci   *
112761847f8eSopenharmony_ci   * @param { CopyOptions } value
112861847f8eSopenharmony_ci   * @returns { ImageAttribute }
112961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
113061847f8eSopenharmony_ci   * @crossplatform
113161847f8eSopenharmony_ci   * @form
113261847f8eSopenharmony_ci   * @atomicservice
113361847f8eSopenharmony_ci   * @since 11
113461847f8eSopenharmony_ci   */
113561847f8eSopenharmony_ci  copyOption(value: CopyOptions): ImageAttribute;
113661847f8eSopenharmony_ci
113761847f8eSopenharmony_ci  /**
113861847f8eSopenharmony_ci   * Enable image dragging.
113961847f8eSopenharmony_ci   * Default value is false.
114061847f8eSopenharmony_ci   *
114161847f8eSopenharmony_ci   * @param { boolean } value
114261847f8eSopenharmony_ci   * @returns { ImageAttribute }
114361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
114461847f8eSopenharmony_ci   * @since 9
114561847f8eSopenharmony_ci   */
114661847f8eSopenharmony_ci  /**
114761847f8eSopenharmony_ci   * Enable image dragging.
114861847f8eSopenharmony_ci   * Default value is true.
114961847f8eSopenharmony_ci   *
115061847f8eSopenharmony_ci   * @param { boolean } value
115161847f8eSopenharmony_ci   * @returns { ImageAttribute }
115261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
115361847f8eSopenharmony_ci   * @atomicservice
115461847f8eSopenharmony_ci   * @since 11
115561847f8eSopenharmony_ci   */
115661847f8eSopenharmony_ci  draggable(value: boolean): ImageAttribute;
115761847f8eSopenharmony_ci
115861847f8eSopenharmony_ci  /**
115961847f8eSopenharmony_ci   * Defines the PointLight
116061847f8eSopenharmony_ci   *
116161847f8eSopenharmony_ci   * @param { PointLightStyle } value - The point light style.
116261847f8eSopenharmony_ci   * @returns { ImageAttribute } The attribute of the image.
116361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
116461847f8eSopenharmony_ci   * @systemapi
116561847f8eSopenharmony_ci   * @since 11
116661847f8eSopenharmony_ci   */
116761847f8eSopenharmony_ci  pointLight(value: PointLightStyle): ImageAttribute;
116861847f8eSopenharmony_ci
116961847f8eSopenharmony_ci  /**
117061847f8eSopenharmony_ci   * SVG anti-aliasing.
117161847f8eSopenharmony_ci   * The range of the parameter values is (0.333, 1.333].
117261847f8eSopenharmony_ci   * Default value is 0.0.
117361847f8eSopenharmony_ci   *
117461847f8eSopenharmony_ci   * @param { number } value - The degree of anti-aliasing.
117561847f8eSopenharmony_ci   * @returns { ImageAttribute } The attribute of the image.
117661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
117761847f8eSopenharmony_ci   * @systemapi
117861847f8eSopenharmony_ci   * @since 11
117961847f8eSopenharmony_ci   */
118061847f8eSopenharmony_ci  edgeAntialiasing(value: number): ImageAttribute;
118161847f8eSopenharmony_ci
118261847f8eSopenharmony_ci  /**
118361847f8eSopenharmony_ci   * This callback is triggered when an image is successfully loaded.
118461847f8eSopenharmony_ci   * The size of the image source that is successfully loaded is returned, in pixels.
118561847f8eSopenharmony_ci   *
118661847f8eSopenharmony_ci   * @param { function } callback
118761847f8eSopenharmony_ci   * @returns { ImageAttribute }
118861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
118961847f8eSopenharmony_ci   * @since 7
119061847f8eSopenharmony_ci   */
119161847f8eSopenharmony_ci  /**
119261847f8eSopenharmony_ci   * This callback is triggered when an image is successfully loaded.
119361847f8eSopenharmony_ci   * The size of the image source that is successfully loaded is returned, in pixels.
119461847f8eSopenharmony_ci   *
119561847f8eSopenharmony_ci   * @param { function } callback
119661847f8eSopenharmony_ci   * @returns { ImageAttribute }
119761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
119861847f8eSopenharmony_ci   * @form
119961847f8eSopenharmony_ci   * @since 9
120061847f8eSopenharmony_ci   */
120161847f8eSopenharmony_ci  /**
120261847f8eSopenharmony_ci   * This callback is triggered when an image is successfully loaded.
120361847f8eSopenharmony_ci   * The size of the image source that is successfully loaded is returned, in pixels.
120461847f8eSopenharmony_ci   *
120561847f8eSopenharmony_ci   * @param { function } callback
120661847f8eSopenharmony_ci   * @returns { ImageAttribute }
120761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
120861847f8eSopenharmony_ci   * @crossplatform
120961847f8eSopenharmony_ci   * @form
121061847f8eSopenharmony_ci   * @since 10
121161847f8eSopenharmony_ci   */
121261847f8eSopenharmony_ci  /**
121361847f8eSopenharmony_ci   * This callback is triggered when an image is successfully loaded.
121461847f8eSopenharmony_ci   * The size of the image source that is successfully loaded is returned, in pixels.
121561847f8eSopenharmony_ci   *
121661847f8eSopenharmony_ci   * @param { function } callback
121761847f8eSopenharmony_ci   * @returns { ImageAttribute }
121861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
121961847f8eSopenharmony_ci   * @crossplatform
122061847f8eSopenharmony_ci   * @form
122161847f8eSopenharmony_ci   * @atomicservice
122261847f8eSopenharmony_ci   * @since 11
122361847f8eSopenharmony_ci   */
122461847f8eSopenharmony_ci  onComplete(
122561847f8eSopenharmony_ci    callback: (event?: {
122661847f8eSopenharmony_ci      /**
122761847f8eSopenharmony_ci       * The width of the image source.
122861847f8eSopenharmony_ci       *
122961847f8eSopenharmony_ci       * @type { number }
123061847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
123161847f8eSopenharmony_ci       * @since 7
123261847f8eSopenharmony_ci       */
123361847f8eSopenharmony_ci      /**
123461847f8eSopenharmony_ci       * The width of the image source.
123561847f8eSopenharmony_ci       *
123661847f8eSopenharmony_ci       * @type { number }
123761847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
123861847f8eSopenharmony_ci       * @since 9
123961847f8eSopenharmony_ci       * @form
124061847f8eSopenharmony_ci       */
124161847f8eSopenharmony_ci      /**
124261847f8eSopenharmony_ci       * The width of the image source.
124361847f8eSopenharmony_ci       *
124461847f8eSopenharmony_ci       * @type { number }
124561847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
124661847f8eSopenharmony_ci       * @crossplatform
124761847f8eSopenharmony_ci       * @since 10
124861847f8eSopenharmony_ci       * @form
124961847f8eSopenharmony_ci       */
125061847f8eSopenharmony_ci      /**
125161847f8eSopenharmony_ci       * The width of the image source.
125261847f8eSopenharmony_ci       *
125361847f8eSopenharmony_ci       * @type { number }
125461847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
125561847f8eSopenharmony_ci       * @crossplatform
125661847f8eSopenharmony_ci       * @atomicservice
125761847f8eSopenharmony_ci       * @since 11
125861847f8eSopenharmony_ci       * @form
125961847f8eSopenharmony_ci       */
126061847f8eSopenharmony_ci      width: number;
126161847f8eSopenharmony_ci      /**
126261847f8eSopenharmony_ci       * The height of the image source.
126361847f8eSopenharmony_ci       *
126461847f8eSopenharmony_ci       * @type { number }
126561847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
126661847f8eSopenharmony_ci       * @since 7
126761847f8eSopenharmony_ci       */
126861847f8eSopenharmony_ci      /**
126961847f8eSopenharmony_ci       * The height of the image source.
127061847f8eSopenharmony_ci       *
127161847f8eSopenharmony_ci       * @type { number }
127261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
127361847f8eSopenharmony_ci       * @since 9
127461847f8eSopenharmony_ci       * @form
127561847f8eSopenharmony_ci       */
127661847f8eSopenharmony_ci      /**
127761847f8eSopenharmony_ci       * The height of the image source.
127861847f8eSopenharmony_ci       *
127961847f8eSopenharmony_ci       * @type { number }
128061847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
128161847f8eSopenharmony_ci       * @crossplatform
128261847f8eSopenharmony_ci       * @since 10
128361847f8eSopenharmony_ci       * @form
128461847f8eSopenharmony_ci       */
128561847f8eSopenharmony_ci      /**
128661847f8eSopenharmony_ci       * The height of the image source.
128761847f8eSopenharmony_ci       *
128861847f8eSopenharmony_ci       * @type { number }
128961847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
129061847f8eSopenharmony_ci       * @crossplatform
129161847f8eSopenharmony_ci       * @atomicservice
129261847f8eSopenharmony_ci       * @since 11
129361847f8eSopenharmony_ci       * @form
129461847f8eSopenharmony_ci       */
129561847f8eSopenharmony_ci      height: number;
129661847f8eSopenharmony_ci      /**
129761847f8eSopenharmony_ci       * The width of the component source.
129861847f8eSopenharmony_ci       *
129961847f8eSopenharmony_ci       * @type { number }
130061847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
130161847f8eSopenharmony_ci       * @since 7
130261847f8eSopenharmony_ci       */
130361847f8eSopenharmony_ci      /**
130461847f8eSopenharmony_ci       * The width of the component source.
130561847f8eSopenharmony_ci       *
130661847f8eSopenharmony_ci       * @type { number }
130761847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
130861847f8eSopenharmony_ci       * @since 9
130961847f8eSopenharmony_ci       * @form
131061847f8eSopenharmony_ci       */
131161847f8eSopenharmony_ci      /**
131261847f8eSopenharmony_ci       * The width of the component source.
131361847f8eSopenharmony_ci       *
131461847f8eSopenharmony_ci       * @type { number }
131561847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
131661847f8eSopenharmony_ci       * @crossplatform
131761847f8eSopenharmony_ci       * @since 10
131861847f8eSopenharmony_ci       * @form
131961847f8eSopenharmony_ci       */
132061847f8eSopenharmony_ci      /**
132161847f8eSopenharmony_ci       * The width of the component source.
132261847f8eSopenharmony_ci       *
132361847f8eSopenharmony_ci       * @type { number }
132461847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
132561847f8eSopenharmony_ci       * @crossplatform
132661847f8eSopenharmony_ci       * @atomicservice
132761847f8eSopenharmony_ci       * @since 11
132861847f8eSopenharmony_ci       * @form
132961847f8eSopenharmony_ci       */
133061847f8eSopenharmony_ci      componentWidth: number;
133161847f8eSopenharmony_ci      /**
133261847f8eSopenharmony_ci       * The height of the component source.
133361847f8eSopenharmony_ci       *
133461847f8eSopenharmony_ci       * @type { number }
133561847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
133661847f8eSopenharmony_ci       * @since 7
133761847f8eSopenharmony_ci       */
133861847f8eSopenharmony_ci      /**
133961847f8eSopenharmony_ci       * The height of the component source.
134061847f8eSopenharmony_ci       *
134161847f8eSopenharmony_ci       * @type { number }
134261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
134361847f8eSopenharmony_ci       * @since 9
134461847f8eSopenharmony_ci       * @form
134561847f8eSopenharmony_ci       */
134661847f8eSopenharmony_ci      /**
134761847f8eSopenharmony_ci       * The height of the component source.
134861847f8eSopenharmony_ci       *
134961847f8eSopenharmony_ci       * @type { number }
135061847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
135161847f8eSopenharmony_ci       * @crossplatform
135261847f8eSopenharmony_ci       * @since 10
135361847f8eSopenharmony_ci       * @form
135461847f8eSopenharmony_ci       */
135561847f8eSopenharmony_ci      /**
135661847f8eSopenharmony_ci       * The height of the component source.
135761847f8eSopenharmony_ci       *
135861847f8eSopenharmony_ci       * @type { number }
135961847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
136061847f8eSopenharmony_ci       * @crossplatform
136161847f8eSopenharmony_ci       * @atomicservice
136261847f8eSopenharmony_ci       * @since 11
136361847f8eSopenharmony_ci       * @form
136461847f8eSopenharmony_ci       */
136561847f8eSopenharmony_ci      componentHeight: number;
136661847f8eSopenharmony_ci      /**
136761847f8eSopenharmony_ci       * The value of the status of the image being loaded successfully.
136861847f8eSopenharmony_ci       * If the returned status value is 0, the image data is successfully loaded.
136961847f8eSopenharmony_ci       * If the returned status value is 1, the image is successfully decoded.
137061847f8eSopenharmony_ci       *
137161847f8eSopenharmony_ci       * @type { number }
137261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
137361847f8eSopenharmony_ci       * @since 7
137461847f8eSopenharmony_ci       */
137561847f8eSopenharmony_ci      /**
137661847f8eSopenharmony_ci       * The value of the status of the image being loaded successfully.
137761847f8eSopenharmony_ci       * If the returned status value is 0, the image data is successfully loaded.
137861847f8eSopenharmony_ci       * If the returned status value is 1, the image is successfully decoded.
137961847f8eSopenharmony_ci       * 
138061847f8eSopenharmony_ci       * @type { number }
138161847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
138261847f8eSopenharmony_ci       * @since 9
138361847f8eSopenharmony_ci       * @form
138461847f8eSopenharmony_ci       */
138561847f8eSopenharmony_ci      /**
138661847f8eSopenharmony_ci       * The value of the status of the image being loaded successfully.
138761847f8eSopenharmony_ci       * If the returned status value is 0, the image data is successfully loaded.
138861847f8eSopenharmony_ci       * If the returned status value is 1, the image is successfully decoded.
138961847f8eSopenharmony_ci       * 
139061847f8eSopenharmony_ci       * @type { number }
139161847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
139261847f8eSopenharmony_ci       * @crossplatform
139361847f8eSopenharmony_ci       * @since 10
139461847f8eSopenharmony_ci       * @form
139561847f8eSopenharmony_ci       */
139661847f8eSopenharmony_ci      /**
139761847f8eSopenharmony_ci       * The value of the status of the image being loaded successfully.
139861847f8eSopenharmony_ci       * If the returned status value is 0, the image data is successfully loaded.
139961847f8eSopenharmony_ci       * If the returned status value is 1, the image is successfully decoded.
140061847f8eSopenharmony_ci       * 
140161847f8eSopenharmony_ci       * @type { number }
140261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
140361847f8eSopenharmony_ci       * @crossplatform
140461847f8eSopenharmony_ci       * @atomicservice
140561847f8eSopenharmony_ci       * @since 11
140661847f8eSopenharmony_ci       * @form
140761847f8eSopenharmony_ci       */
140861847f8eSopenharmony_ci      loadingStatus: number;
140961847f8eSopenharmony_ci      /**
141061847f8eSopenharmony_ci       * The width of the picture that is actually drawn.
141161847f8eSopenharmony_ci       *
141261847f8eSopenharmony_ci       * @type { number }
141361847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
141461847f8eSopenharmony_ci       * @crossplatform
141561847f8eSopenharmony_ci       * @since 10
141661847f8eSopenharmony_ci       * @form
141761847f8eSopenharmony_ci       */
141861847f8eSopenharmony_ci      /**
141961847f8eSopenharmony_ci       * The width of the picture that is actually drawn.
142061847f8eSopenharmony_ci       *
142161847f8eSopenharmony_ci       * @type { number }
142261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
142361847f8eSopenharmony_ci       * @crossplatform
142461847f8eSopenharmony_ci       * @atomicservice
142561847f8eSopenharmony_ci       * @since 11
142661847f8eSopenharmony_ci       * @form
142761847f8eSopenharmony_ci       */
142861847f8eSopenharmony_ci      contentWidth: number;
142961847f8eSopenharmony_ci      /**
143061847f8eSopenharmony_ci       * The height of the picture that is actually drawn.
143161847f8eSopenharmony_ci       *
143261847f8eSopenharmony_ci       * @type { number }
143361847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
143461847f8eSopenharmony_ci       * @crossplatform
143561847f8eSopenharmony_ci       * @since 10
143661847f8eSopenharmony_ci       * @form
143761847f8eSopenharmony_ci       */
143861847f8eSopenharmony_ci      /**
143961847f8eSopenharmony_ci       * The height of the picture that is actually drawn.
144061847f8eSopenharmony_ci       *
144161847f8eSopenharmony_ci       * @type { number }
144261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
144361847f8eSopenharmony_ci       * @crossplatform
144461847f8eSopenharmony_ci       * @atomicservice
144561847f8eSopenharmony_ci       * @since 11
144661847f8eSopenharmony_ci       * @form
144761847f8eSopenharmony_ci       */
144861847f8eSopenharmony_ci      contentHeight: number;
144961847f8eSopenharmony_ci      /**
145061847f8eSopenharmony_ci       * The actual draw is offset from the x-axis of the component itself.
145161847f8eSopenharmony_ci       *
145261847f8eSopenharmony_ci       * @type { number }
145361847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
145461847f8eSopenharmony_ci       * @crossplatform
145561847f8eSopenharmony_ci       * @since 10
145661847f8eSopenharmony_ci       * @form
145761847f8eSopenharmony_ci       */
145861847f8eSopenharmony_ci      /**
145961847f8eSopenharmony_ci       * The actual draw is offset from the x-axis of the component itself.
146061847f8eSopenharmony_ci       *
146161847f8eSopenharmony_ci       * @type { number }
146261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
146361847f8eSopenharmony_ci       * @crossplatform
146461847f8eSopenharmony_ci       * @atomicservice
146561847f8eSopenharmony_ci       * @since 11
146661847f8eSopenharmony_ci       * @form
146761847f8eSopenharmony_ci       */
146861847f8eSopenharmony_ci      contentOffsetX: number;
146961847f8eSopenharmony_ci      /**
147061847f8eSopenharmony_ci       * The actual draw is offset from the y-axis of the component itself.
147161847f8eSopenharmony_ci       *
147261847f8eSopenharmony_ci       * @type { number }
147361847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
147461847f8eSopenharmony_ci       * @crossplatform
147561847f8eSopenharmony_ci       * @since 10
147661847f8eSopenharmony_ci       * @form
147761847f8eSopenharmony_ci       */
147861847f8eSopenharmony_ci      /**
147961847f8eSopenharmony_ci       * The actual draw is offset from the y-axis of the component itself.
148061847f8eSopenharmony_ci       *
148161847f8eSopenharmony_ci       * @type { number }
148261847f8eSopenharmony_ci       * @syscap SystemCapability.ArkUI.ArkUI.Full
148361847f8eSopenharmony_ci       * @crossplatform
148461847f8eSopenharmony_ci       * @atomicservice
148561847f8eSopenharmony_ci       * @since 11
148661847f8eSopenharmony_ci       * @form
148761847f8eSopenharmony_ci       */
148861847f8eSopenharmony_ci      contentOffsetY: number;
148961847f8eSopenharmony_ci    }) => void,
149061847f8eSopenharmony_ci  ): ImageAttribute;
149161847f8eSopenharmony_ci
149261847f8eSopenharmony_ci  /**
149361847f8eSopenharmony_ci   * This callback is triggered when an exception occurs during image loading.
149461847f8eSopenharmony_ci   * The field of "message" carries the detailed information of failed image loading.
149561847f8eSopenharmony_ci   *
149661847f8eSopenharmony_ci   * @param { function } callback
149761847f8eSopenharmony_ci   * @returns { ImageAttribute }
149861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
149961847f8eSopenharmony_ci   * @form
150061847f8eSopenharmony_ci   * @since 9
150161847f8eSopenharmony_ci   */
150261847f8eSopenharmony_ci  /**
150361847f8eSopenharmony_ci   * This callback is triggered when an exception occurs during image loading.
150461847f8eSopenharmony_ci   * The field of "message" carries the detailed information of failed image loading.
150561847f8eSopenharmony_ci   *
150661847f8eSopenharmony_ci   * @param { function } callback
150761847f8eSopenharmony_ci   * @returns { ImageAttribute }
150861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
150961847f8eSopenharmony_ci   * @crossplatform
151061847f8eSopenharmony_ci   * @form
151161847f8eSopenharmony_ci   * @since 10
151261847f8eSopenharmony_ci   */
151361847f8eSopenharmony_ci  /**
151461847f8eSopenharmony_ci   * This callback is triggered when an exception occurs during image loading.
151561847f8eSopenharmony_ci   * The field of "message" carries the detailed information of failed image loading.
151661847f8eSopenharmony_ci   *
151761847f8eSopenharmony_ci   * @param { ImageErrorCallback } callback
151861847f8eSopenharmony_ci   * @returns { ImageAttribute }
151961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
152061847f8eSopenharmony_ci   * @crossplatform
152161847f8eSopenharmony_ci   * @form
152261847f8eSopenharmony_ci   * @atomicservice
152361847f8eSopenharmony_ci   * @since 11
152461847f8eSopenharmony_ci   */
152561847f8eSopenharmony_ci  onError(callback: ImageErrorCallback): ImageAttribute;
152661847f8eSopenharmony_ci
152761847f8eSopenharmony_ci  /**
152861847f8eSopenharmony_ci   * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete.
152961847f8eSopenharmony_ci   * If the svg image is a wireless loop image, this callback is not triggered.
153061847f8eSopenharmony_ci   *
153161847f8eSopenharmony_ci   * @param { function } event
153261847f8eSopenharmony_ci   * @returns { ImageAttribute }
153361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
153461847f8eSopenharmony_ci   * @since 7
153561847f8eSopenharmony_ci   */
153661847f8eSopenharmony_ci  /**
153761847f8eSopenharmony_ci   * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete.
153861847f8eSopenharmony_ci   * If the svg image is a wireless loop image, this callback is not triggered.
153961847f8eSopenharmony_ci   *
154061847f8eSopenharmony_ci   * @param { function } event
154161847f8eSopenharmony_ci   * @returns { ImageAttribute }
154261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
154361847f8eSopenharmony_ci   * @form
154461847f8eSopenharmony_ci   * @since 9
154561847f8eSopenharmony_ci   */
154661847f8eSopenharmony_ci  /**
154761847f8eSopenharmony_ci   * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete.
154861847f8eSopenharmony_ci   * If the svg image is a wireless loop image, this callback is not triggered.
154961847f8eSopenharmony_ci   *
155061847f8eSopenharmony_ci   * @param { function } event
155161847f8eSopenharmony_ci   * @returns { ImageAttribute }
155261847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
155361847f8eSopenharmony_ci   * @crossplatform
155461847f8eSopenharmony_ci   * @form
155561847f8eSopenharmony_ci   * @since 10
155661847f8eSopenharmony_ci   */
155761847f8eSopenharmony_ci  /**
155861847f8eSopenharmony_ci   * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete.
155961847f8eSopenharmony_ci   * If the svg image is a wireless loop image, this callback is not triggered.
156061847f8eSopenharmony_ci   *
156161847f8eSopenharmony_ci   * @param { function } event
156261847f8eSopenharmony_ci   * @returns { ImageAttribute }
156361847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
156461847f8eSopenharmony_ci   * @crossplatform
156561847f8eSopenharmony_ci   * @form
156661847f8eSopenharmony_ci   * @atomicservice
156761847f8eSopenharmony_ci   * @since 11
156861847f8eSopenharmony_ci   */
156961847f8eSopenharmony_ci  onFinish(event: () => void): ImageAttribute;
157061847f8eSopenharmony_ci
157161847f8eSopenharmony_ci  /**
157261847f8eSopenharmony_ci   * Enable image analyzer.
157361847f8eSopenharmony_ci   *
157461847f8eSopenharmony_ci   * @param { boolean} enable
157561847f8eSopenharmony_ci   * @returns { ImageAttribute }
157661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
157761847f8eSopenharmony_ci   * @since 11
157861847f8eSopenharmony_ci   */
157961847f8eSopenharmony_ci  /**
158061847f8eSopenharmony_ci   * Enable image analyzer.
158161847f8eSopenharmony_ci   *
158261847f8eSopenharmony_ci   * @param { boolean} enable
158361847f8eSopenharmony_ci   * @returns { ImageAttribute }
158461847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
158561847f8eSopenharmony_ci   * @atomicservice
158661847f8eSopenharmony_ci   * @since 12
158761847f8eSopenharmony_ci   */
158861847f8eSopenharmony_ci  enableAnalyzer(enable: boolean): ImageAttribute;
158961847f8eSopenharmony_ci
159061847f8eSopenharmony_ci  /**
159161847f8eSopenharmony_ci   * Set image analyzer with config.
159261847f8eSopenharmony_ci   *
159361847f8eSopenharmony_ci   * @param { ImageAnalyzerConfig } config
159461847f8eSopenharmony_ci   * @returns { ImageAttribute }
159561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
159661847f8eSopenharmony_ci   * @systemapi
159761847f8eSopenharmony_ci   * @since 11
159861847f8eSopenharmony_ci   */
159961847f8eSopenharmony_ci  analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute;
160061847f8eSopenharmony_ci
160161847f8eSopenharmony_ci  /**
160261847f8eSopenharmony_ci   * Set image resizable options.
160361847f8eSopenharmony_ci   *
160461847f8eSopenharmony_ci   * @param { ResizableOptions } value - Indicates the resizable options.
160561847f8eSopenharmony_ci   * @returns { ImageAttribute } Returns the instance of the ImageAttribute.
160661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
160761847f8eSopenharmony_ci   * @crossplatform
160861847f8eSopenharmony_ci   * @since 11
160961847f8eSopenharmony_ci   */
161061847f8eSopenharmony_ci  /**
161161847f8eSopenharmony_ci   * Set image resizable options.
161261847f8eSopenharmony_ci   *
161361847f8eSopenharmony_ci   * @param { ResizableOptions } value - Indicates the resizable options.
161461847f8eSopenharmony_ci   * @returns { ImageAttribute } Returns the instance of the ImageAttribute.
161561847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
161661847f8eSopenharmony_ci   * @crossplatform
161761847f8eSopenharmony_ci   * @atomicservice
161861847f8eSopenharmony_ci   * @since 12
161961847f8eSopenharmony_ci   */
162061847f8eSopenharmony_ci  resizable(value: ResizableOptions): ImageAttribute;
162161847f8eSopenharmony_ci
162261847f8eSopenharmony_ci  /**
162361847f8eSopenharmony_ci   * Whether to support sensitive privacy information
162461847f8eSopenharmony_ci   *
162561847f8eSopenharmony_ci   * @param { boolean } supported - Whether to support sensitive privacy information.
162661847f8eSopenharmony_ci   * @returns { ImageAttribute }
162761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
162861847f8eSopenharmony_ci   * @form
162961847f8eSopenharmony_ci   * @atomicservice
163061847f8eSopenharmony_ci   * @since 12
163161847f8eSopenharmony_ci   */
163261847f8eSopenharmony_ci  privacySensitive(supported: boolean): ImageAttribute;
163361847f8eSopenharmony_ci
163461847f8eSopenharmony_ci  /**
163561847f8eSopenharmony_ci   * Set the quality enhancement level of image.
163661847f8eSopenharmony_ci   *
163761847f8eSopenharmony_ci   * @param { ResolutionQuality } imageQuality
163861847f8eSopenharmony_ci   * @returns { ImageAttribute }
163961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
164061847f8eSopenharmony_ci   * @systemapi
164161847f8eSopenharmony_ci   * @since 12
164261847f8eSopenharmony_ci   */
164361847f8eSopenharmony_ci  enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute;
164461847f8eSopenharmony_ci}
164561847f8eSopenharmony_ci
164661847f8eSopenharmony_ci/**
164761847f8eSopenharmony_ci * Defines Image Component.
164861847f8eSopenharmony_ci *
164961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
165061847f8eSopenharmony_ci * @since 7
165161847f8eSopenharmony_ci */
165261847f8eSopenharmony_ci/**
165361847f8eSopenharmony_ci * Defines Image Component.
165461847f8eSopenharmony_ci *
165561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
165661847f8eSopenharmony_ci * @form
165761847f8eSopenharmony_ci * @since 9
165861847f8eSopenharmony_ci */
165961847f8eSopenharmony_ci/**
166061847f8eSopenharmony_ci * Defines Image Component.
166161847f8eSopenharmony_ci *
166261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
166361847f8eSopenharmony_ci * @crossplatform
166461847f8eSopenharmony_ci * @form
166561847f8eSopenharmony_ci * @since 10
166661847f8eSopenharmony_ci */
166761847f8eSopenharmony_ci/**
166861847f8eSopenharmony_ci * Defines Image Component.
166961847f8eSopenharmony_ci *
167061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
167161847f8eSopenharmony_ci * @crossplatform
167261847f8eSopenharmony_ci * @form
167361847f8eSopenharmony_ci * @atomicservice
167461847f8eSopenharmony_ci * @since 11
167561847f8eSopenharmony_ci */
167661847f8eSopenharmony_cideclare const Image: ImageInterface;
167761847f8eSopenharmony_ci
167861847f8eSopenharmony_ci/**
167961847f8eSopenharmony_ci * Defines Image Component instance.
168061847f8eSopenharmony_ci *
168161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
168261847f8eSopenharmony_ci * @since 7
168361847f8eSopenharmony_ci */
168461847f8eSopenharmony_ci/**
168561847f8eSopenharmony_ci * Defines Image Component instance.
168661847f8eSopenharmony_ci *
168761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
168861847f8eSopenharmony_ci * @form
168961847f8eSopenharmony_ci * @since 9
169061847f8eSopenharmony_ci */
169161847f8eSopenharmony_ci/**
169261847f8eSopenharmony_ci * Defines Image Component instance.
169361847f8eSopenharmony_ci *
169461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
169561847f8eSopenharmony_ci * @crossplatform
169661847f8eSopenharmony_ci * @form
169761847f8eSopenharmony_ci * @since 10
169861847f8eSopenharmony_ci */
169961847f8eSopenharmony_ci/**
170061847f8eSopenharmony_ci * Defines Image Component instance.
170161847f8eSopenharmony_ci *
170261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
170361847f8eSopenharmony_ci * @crossplatform
170461847f8eSopenharmony_ci * @form
170561847f8eSopenharmony_ci * @atomicservice
170661847f8eSopenharmony_ci * @since 11
170761847f8eSopenharmony_ci */
170861847f8eSopenharmony_cideclare const ImageInstance: ImageAttribute;
170961847f8eSopenharmony_ci
171061847f8eSopenharmony_ci/**
171161847f8eSopenharmony_ci * @type ImageErrorCallback
171261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
171361847f8eSopenharmony_ci * @form
171461847f8eSopenharmony_ci * @since 9
171561847f8eSopenharmony_ci */
171661847f8eSopenharmony_ci/**
171761847f8eSopenharmony_ci * @type ImageErrorCallback
171861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
171961847f8eSopenharmony_ci * @crossplatform
172061847f8eSopenharmony_ci * @form
172161847f8eSopenharmony_ci * @since 10
172261847f8eSopenharmony_ci */
172361847f8eSopenharmony_ci/**
172461847f8eSopenharmony_ci * @typedef { function } ImageErrorCallback
172561847f8eSopenharmony_ci * @param { ImageError } error
172661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
172761847f8eSopenharmony_ci * @crossplatform
172861847f8eSopenharmony_ci * @form
172961847f8eSopenharmony_ci * @atomicservice
173061847f8eSopenharmony_ci * @since 11
173161847f8eSopenharmony_ci */
173261847f8eSopenharmony_citype ImageErrorCallback = (error: ImageError) => void;
173361847f8eSopenharmony_ci
173461847f8eSopenharmony_ci/**
173561847f8eSopenharmony_ci * @interface ImageError
173661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
173761847f8eSopenharmony_ci * @form
173861847f8eSopenharmony_ci * @since 9
173961847f8eSopenharmony_ci */
174061847f8eSopenharmony_ci/**
174161847f8eSopenharmony_ci * @interface ImageError
174261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
174361847f8eSopenharmony_ci * @crossplatform
174461847f8eSopenharmony_ci * @form
174561847f8eSopenharmony_ci * @since 10
174661847f8eSopenharmony_ci */
174761847f8eSopenharmony_ci/**
174861847f8eSopenharmony_ci * @interface ImageError
174961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
175061847f8eSopenharmony_ci * @crossplatform
175161847f8eSopenharmony_ci * @form
175261847f8eSopenharmony_ci * @atomicservice
175361847f8eSopenharmony_ci * @since 11
175461847f8eSopenharmony_ci */
175561847f8eSopenharmony_cideclare interface ImageError {
175661847f8eSopenharmony_ci  /**
175761847f8eSopenharmony_ci   * Component width.
175861847f8eSopenharmony_ci   *
175961847f8eSopenharmony_ci   * @type { number }
176061847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
176161847f8eSopenharmony_ci   * @form
176261847f8eSopenharmony_ci   * @since 9
176361847f8eSopenharmony_ci   */
176461847f8eSopenharmony_ci  /**
176561847f8eSopenharmony_ci   * Component width.
176661847f8eSopenharmony_ci   *
176761847f8eSopenharmony_ci   * @type { number }
176861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
176961847f8eSopenharmony_ci   * @crossplatform
177061847f8eSopenharmony_ci   * @form
177161847f8eSopenharmony_ci   * @since 10
177261847f8eSopenharmony_ci   */
177361847f8eSopenharmony_ci  /**
177461847f8eSopenharmony_ci   * Component width.
177561847f8eSopenharmony_ci   *
177661847f8eSopenharmony_ci   * @type { number }
177761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
177861847f8eSopenharmony_ci   * @crossplatform
177961847f8eSopenharmony_ci   * @form
178061847f8eSopenharmony_ci   * @atomicservice
178161847f8eSopenharmony_ci   * @since 11
178261847f8eSopenharmony_ci   */
178361847f8eSopenharmony_ci  componentWidth: number;
178461847f8eSopenharmony_ci
178561847f8eSopenharmony_ci  /**
178661847f8eSopenharmony_ci   * Component height.
178761847f8eSopenharmony_ci   *
178861847f8eSopenharmony_ci   * @type { number }
178961847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
179061847f8eSopenharmony_ci   * @form
179161847f8eSopenharmony_ci   * @since 9
179261847f8eSopenharmony_ci   */
179361847f8eSopenharmony_ci  /**
179461847f8eSopenharmony_ci   * Component height.
179561847f8eSopenharmony_ci   *
179661847f8eSopenharmony_ci   * @type { number }
179761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
179861847f8eSopenharmony_ci   * @crossplatform
179961847f8eSopenharmony_ci   * @form
180061847f8eSopenharmony_ci   * @since 10
180161847f8eSopenharmony_ci   */
180261847f8eSopenharmony_ci  /**
180361847f8eSopenharmony_ci   * Component height.
180461847f8eSopenharmony_ci   *
180561847f8eSopenharmony_ci   * @type { number }
180661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
180761847f8eSopenharmony_ci   * @crossplatform
180861847f8eSopenharmony_ci   * @form
180961847f8eSopenharmony_ci   * @atomicservice
181061847f8eSopenharmony_ci   * @since 11
181161847f8eSopenharmony_ci   */
181261847f8eSopenharmony_ci  componentHeight: number;
181361847f8eSopenharmony_ci
181461847f8eSopenharmony_ci  /**
181561847f8eSopenharmony_ci   * Message.
181661847f8eSopenharmony_ci   *
181761847f8eSopenharmony_ci   * @type { string }
181861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
181961847f8eSopenharmony_ci   * @crossplatform
182061847f8eSopenharmony_ci   * @form
182161847f8eSopenharmony_ci   * @since 10
182261847f8eSopenharmony_ci   */
182361847f8eSopenharmony_ci  /**
182461847f8eSopenharmony_ci   * Message.
182561847f8eSopenharmony_ci   *
182661847f8eSopenharmony_ci   * @type { string }
182761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
182861847f8eSopenharmony_ci   * @crossplatform
182961847f8eSopenharmony_ci   * @form
183061847f8eSopenharmony_ci   * @atomicservice
183161847f8eSopenharmony_ci   * @since 11
183261847f8eSopenharmony_ci   */
183361847f8eSopenharmony_ci  message: string
183461847f8eSopenharmony_ci}
183561847f8eSopenharmony_ci
183661847f8eSopenharmony_ci/**
183761847f8eSopenharmony_ci * Image resizable options
183861847f8eSopenharmony_ci * 
183961847f8eSopenharmony_ci * @interface ResizableOptions
184061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
184161847f8eSopenharmony_ci * @crossplatform
184261847f8eSopenharmony_ci * @since 11
184361847f8eSopenharmony_ci */
184461847f8eSopenharmony_ci/**
184561847f8eSopenharmony_ci * Image resizable options
184661847f8eSopenharmony_ci * 
184761847f8eSopenharmony_ci * @interface ResizableOptions
184861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full
184961847f8eSopenharmony_ci * @crossplatform
185061847f8eSopenharmony_ci * @atomicservice
185161847f8eSopenharmony_ci * @since 12
185261847f8eSopenharmony_ci */
185361847f8eSopenharmony_cideclare interface ResizableOptions {
185461847f8eSopenharmony_ci  /**
185561847f8eSopenharmony_ci   * Image slice widths.
185661847f8eSopenharmony_ci   *
185761847f8eSopenharmony_ci   * @type { ?EdgeWidths }
185861847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
185961847f8eSopenharmony_ci   * @crossplatform
186061847f8eSopenharmony_ci   * @since 11
186161847f8eSopenharmony_ci   */
186261847f8eSopenharmony_ci  /**
186361847f8eSopenharmony_ci   * Image slice widths.
186461847f8eSopenharmony_ci   *
186561847f8eSopenharmony_ci   * @type { ?EdgeWidths }
186661847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
186761847f8eSopenharmony_ci   * @crossplatform
186861847f8eSopenharmony_ci   * @atomicservice
186961847f8eSopenharmony_ci   * @since 12
187061847f8eSopenharmony_ci   */
187161847f8eSopenharmony_ci  slice?: EdgeWidths;
187261847f8eSopenharmony_ci
187361847f8eSopenharmony_ci  /**
187461847f8eSopenharmony_ci   * Image lattice.
187561847f8eSopenharmony_ci   *
187661847f8eSopenharmony_ci   * @type { ?DrawingLattice }
187761847f8eSopenharmony_ci   * @syscap SystemCapability.ArkUI.ArkUI.Full
187861847f8eSopenharmony_ci   * @crossplatform
187961847f8eSopenharmony_ci   * @atomicservice
188061847f8eSopenharmony_ci   * @since 12
188161847f8eSopenharmony_ci   */
188261847f8eSopenharmony_ci  lattice?: DrawingLattice;
188361847f8eSopenharmony_ci}
1884