161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (C) 2022 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 ImageKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport { AsyncCallback } from './@ohos.base';
2261847f8eSopenharmony_ciimport type colorSpaceManager from './@ohos.graphics.colorSpaceManager';
2361847f8eSopenharmony_ciimport type resourceManager from './@ohos.resourceManager';
2461847f8eSopenharmony_ciimport type rpc from './@ohos.rpc';
2561847f8eSopenharmony_ci
2661847f8eSopenharmony_ci/**
2761847f8eSopenharmony_ci * @namespace image
2861847f8eSopenharmony_ci * @since 6
2961847f8eSopenharmony_ci */
3061847f8eSopenharmony_ci/**
3161847f8eSopenharmony_ci * This module provides the capability of image codec and access
3261847f8eSopenharmony_ci * @namespace image
3361847f8eSopenharmony_ci * @syscap SystemCapability.Multimedia.Image.Core
3461847f8eSopenharmony_ci * @crossplatform
3561847f8eSopenharmony_ci * @atomicservice
3661847f8eSopenharmony_ci * @since 11
3761847f8eSopenharmony_ci */
3861847f8eSopenharmony_ci/**
3961847f8eSopenharmony_ci * This module provides the capability of image codec and access
4061847f8eSopenharmony_ci * @namespace image
4161847f8eSopenharmony_ci * @syscap SystemCapability.Multimedia.Image.Core
4261847f8eSopenharmony_ci * @crossplatform
4361847f8eSopenharmony_ci * @form
4461847f8eSopenharmony_ci * @atomicservice
4561847f8eSopenharmony_ci * @since 12
4661847f8eSopenharmony_ci */
4761847f8eSopenharmony_cideclare namespace image {
4861847f8eSopenharmony_ci  /**
4961847f8eSopenharmony_ci   * Enumerates pixel map formats.
5061847f8eSopenharmony_ci   *
5161847f8eSopenharmony_ci   * @enum { number }
5261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
5361847f8eSopenharmony_ci   * @since 7
5461847f8eSopenharmony_ci   */
5561847f8eSopenharmony_ci  /**
5661847f8eSopenharmony_ci   * Enumerates pixel map formats.
5761847f8eSopenharmony_ci   *
5861847f8eSopenharmony_ci   * @enum { number }
5961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
6061847f8eSopenharmony_ci   * @crossplatform
6161847f8eSopenharmony_ci   * @since 10
6261847f8eSopenharmony_ci   */
6361847f8eSopenharmony_ci  /**
6461847f8eSopenharmony_ci   * Enumerates pixel map formats.
6561847f8eSopenharmony_ci   *
6661847f8eSopenharmony_ci   * @enum { number }
6761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
6861847f8eSopenharmony_ci   * @crossplatform
6961847f8eSopenharmony_ci   * @atomicservice
7061847f8eSopenharmony_ci   * @since 11
7161847f8eSopenharmony_ci   */
7261847f8eSopenharmony_ci  /**
7361847f8eSopenharmony_ci   * Enumerates pixel map formats.
7461847f8eSopenharmony_ci   *
7561847f8eSopenharmony_ci   * @enum { number }
7661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
7761847f8eSopenharmony_ci   * @crossplatform
7861847f8eSopenharmony_ci   * @form
7961847f8eSopenharmony_ci   * @atomicservice
8061847f8eSopenharmony_ci   * @since 12
8161847f8eSopenharmony_ci   */
8261847f8eSopenharmony_ci  enum PixelMapFormat {
8361847f8eSopenharmony_ci    /**
8461847f8eSopenharmony_ci     * Indicates an unknown format.
8561847f8eSopenharmony_ci     *
8661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
8761847f8eSopenharmony_ci     * @since 7
8861847f8eSopenharmony_ci     */
8961847f8eSopenharmony_ci    /**
9061847f8eSopenharmony_ci     * Indicates an unknown format.
9161847f8eSopenharmony_ci     *
9261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
9361847f8eSopenharmony_ci     * @crossplatform
9461847f8eSopenharmony_ci     * @since 10
9561847f8eSopenharmony_ci     */
9661847f8eSopenharmony_ci    /**
9761847f8eSopenharmony_ci     * Indicates an unknown format.
9861847f8eSopenharmony_ci     *
9961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
10061847f8eSopenharmony_ci     * @crossplatform
10161847f8eSopenharmony_ci     * @atomicservice
10261847f8eSopenharmony_ci     * @since 11
10361847f8eSopenharmony_ci     */
10461847f8eSopenharmony_ci    /**
10561847f8eSopenharmony_ci     * Indicates an unknown format.
10661847f8eSopenharmony_ci     *
10761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
10861847f8eSopenharmony_ci     * @crossplatform
10961847f8eSopenharmony_ci     * @form
11061847f8eSopenharmony_ci     * @atomicservice
11161847f8eSopenharmony_ci     * @since 12
11261847f8eSopenharmony_ci     */
11361847f8eSopenharmony_ci    UNKNOWN = 0,
11461847f8eSopenharmony_ci
11561847f8eSopenharmony_ci    /**
11661847f8eSopenharmony_ci     * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded
11761847f8eSopenharmony_ci     * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,
11861847f8eSopenharmony_ci     * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.
11961847f8eSopenharmony_ci     *
12061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
12161847f8eSopenharmony_ci     * @since 7
12261847f8eSopenharmony_ci     */
12361847f8eSopenharmony_ci    /**
12461847f8eSopenharmony_ci     * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded
12561847f8eSopenharmony_ci     * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,
12661847f8eSopenharmony_ci     * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.
12761847f8eSopenharmony_ci     *
12861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
12961847f8eSopenharmony_ci     * @crossplatform
13061847f8eSopenharmony_ci     * @since 10
13161847f8eSopenharmony_ci     */
13261847f8eSopenharmony_ci    /**
13361847f8eSopenharmony_ci     * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded
13461847f8eSopenharmony_ci     * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,
13561847f8eSopenharmony_ci     * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.
13661847f8eSopenharmony_ci     *
13761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
13861847f8eSopenharmony_ci     * @crossplatform
13961847f8eSopenharmony_ci     * @atomicservice
14061847f8eSopenharmony_ci     * @since 11
14161847f8eSopenharmony_ci     */
14261847f8eSopenharmony_ci    /**
14361847f8eSopenharmony_ci     * Indicates that each pixel is stored on 16 bits. Only the R, G, and B components are encoded
14461847f8eSopenharmony_ci     * from the higher-order to the lower-order bits: red is stored with 5 bits of precision,
14561847f8eSopenharmony_ci     * green is stored with 6 bits of precision, and blue is stored with 5 bits of precision.
14661847f8eSopenharmony_ci     *
14761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
14861847f8eSopenharmony_ci     * @crossplatform
14961847f8eSopenharmony_ci     * @form
15061847f8eSopenharmony_ci     * @atomicservice
15161847f8eSopenharmony_ci     * @since 12
15261847f8eSopenharmony_ci     */
15361847f8eSopenharmony_ci    RGB_565 = 2,
15461847f8eSopenharmony_ci
15561847f8eSopenharmony_ci    /**
15661847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
15761847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
15861847f8eSopenharmony_ci     *
15961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
16061847f8eSopenharmony_ci     * @since 7
16161847f8eSopenharmony_ci     */
16261847f8eSopenharmony_ci    /**
16361847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
16461847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
16561847f8eSopenharmony_ci     *
16661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
16761847f8eSopenharmony_ci     * @crossplatform
16861847f8eSopenharmony_ci     * @since 10
16961847f8eSopenharmony_ci     */
17061847f8eSopenharmony_ci    /**
17161847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
17261847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
17361847f8eSopenharmony_ci     *
17461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
17561847f8eSopenharmony_ci     * @crossplatform
17661847f8eSopenharmony_ci     * @atomicservice
17761847f8eSopenharmony_ci     * @since 11
17861847f8eSopenharmony_ci     */
17961847f8eSopenharmony_ci    /**
18061847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
18161847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
18261847f8eSopenharmony_ci     *
18361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
18461847f8eSopenharmony_ci     * @crossplatform
18561847f8eSopenharmony_ci     * @form
18661847f8eSopenharmony_ci     * @atomicservice
18761847f8eSopenharmony_ci     * @since 12
18861847f8eSopenharmony_ci     */
18961847f8eSopenharmony_ci    RGBA_8888 = 3,
19061847f8eSopenharmony_ci
19161847f8eSopenharmony_ci    /**
19261847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
19361847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
19461847f8eSopenharmony_ci     *
19561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
19661847f8eSopenharmony_ci     * @since 9
19761847f8eSopenharmony_ci     */
19861847f8eSopenharmony_ci    /**
19961847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
20061847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
20161847f8eSopenharmony_ci     *
20261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
20361847f8eSopenharmony_ci     * @crossplatform
20461847f8eSopenharmony_ci     * @since 10
20561847f8eSopenharmony_ci     */
20661847f8eSopenharmony_ci    /**
20761847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
20861847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
20961847f8eSopenharmony_ci     *
21061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
21161847f8eSopenharmony_ci     * @crossplatform
21261847f8eSopenharmony_ci     * @atomicservice
21361847f8eSopenharmony_ci     * @since 11
21461847f8eSopenharmony_ci     */
21561847f8eSopenharmony_ci    /**
21661847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
21761847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
21861847f8eSopenharmony_ci     *
21961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
22061847f8eSopenharmony_ci     * @crossplatform
22161847f8eSopenharmony_ci     * @form
22261847f8eSopenharmony_ci     * @atomicservice
22361847f8eSopenharmony_ci     * @since 12
22461847f8eSopenharmony_ci     */
22561847f8eSopenharmony_ci    BGRA_8888 = 4,
22661847f8eSopenharmony_ci
22761847f8eSopenharmony_ci    /**
22861847f8eSopenharmony_ci     * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components:R(8bits), G(8bits), B(8bits)
22961847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
23061847f8eSopenharmony_ci     *
23161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
23261847f8eSopenharmony_ci     * @since 9
23361847f8eSopenharmony_ci     */
23461847f8eSopenharmony_ci    /**
23561847f8eSopenharmony_ci     * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components:R(8bits), G(8bits), B(8bits)
23661847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
23761847f8eSopenharmony_ci     *
23861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
23961847f8eSopenharmony_ci     * @crossplatform
24061847f8eSopenharmony_ci     * @since 10
24161847f8eSopenharmony_ci     */
24261847f8eSopenharmony_ci    /**
24361847f8eSopenharmony_ci     * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components:R(8bits), G(8bits), B(8bits)
24461847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
24561847f8eSopenharmony_ci     *
24661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
24761847f8eSopenharmony_ci     * @crossplatform
24861847f8eSopenharmony_ci     * @atomicservice
24961847f8eSopenharmony_ci     * @since 11
25061847f8eSopenharmony_ci     */
25161847f8eSopenharmony_ci    /**
25261847f8eSopenharmony_ci     * Indicates that each pixel is stored on 24 bits. Each pixel contains 3 components:R(8bits), G(8bits), B(8bits)
25361847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
25461847f8eSopenharmony_ci     *
25561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
25661847f8eSopenharmony_ci     * @crossplatform
25761847f8eSopenharmony_ci     * @form
25861847f8eSopenharmony_ci     * @atomicservice
25961847f8eSopenharmony_ci     * @since 12
26061847f8eSopenharmony_ci     */
26161847f8eSopenharmony_ci    RGB_888 = 5,
26261847f8eSopenharmony_ci
26361847f8eSopenharmony_ci    /**
26461847f8eSopenharmony_ci     * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component:ALPHA(8bits)
26561847f8eSopenharmony_ci     * and is stored from the higher-order to the lower-order bits.
26661847f8eSopenharmony_ci     *
26761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
26861847f8eSopenharmony_ci     * @since 9
26961847f8eSopenharmony_ci     */
27061847f8eSopenharmony_ci    /**
27161847f8eSopenharmony_ci     * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component:ALPHA(8bits)
27261847f8eSopenharmony_ci     * and is stored from the higher-order to the lower-order bits.
27361847f8eSopenharmony_ci     *
27461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
27561847f8eSopenharmony_ci     * @crossplatform
27661847f8eSopenharmony_ci     * @since 10
27761847f8eSopenharmony_ci     */
27861847f8eSopenharmony_ci    /**
27961847f8eSopenharmony_ci     * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component:ALPHA(8bits)
28061847f8eSopenharmony_ci     * and is stored from the higher-order to the lower-order bits.
28161847f8eSopenharmony_ci     *
28261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
28361847f8eSopenharmony_ci     * @crossplatform
28461847f8eSopenharmony_ci     * @atomicservice
28561847f8eSopenharmony_ci     * @since 11
28661847f8eSopenharmony_ci     */
28761847f8eSopenharmony_ci    /**
28861847f8eSopenharmony_ci     * Indicates that each pixel is stored on 8 bits. Each pixel contains 1 component:ALPHA(8bits)
28961847f8eSopenharmony_ci     * and is stored from the higher-order to the lower-order bits.
29061847f8eSopenharmony_ci     *
29161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
29261847f8eSopenharmony_ci     * @crossplatform
29361847f8eSopenharmony_ci     * @form
29461847f8eSopenharmony_ci     * @atomicservice
29561847f8eSopenharmony_ci     * @since 12
29661847f8eSopenharmony_ci     */
29761847f8eSopenharmony_ci    ALPHA_8 = 6,
29861847f8eSopenharmony_ci
29961847f8eSopenharmony_ci    /**
30061847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
30161847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits in F16.
30261847f8eSopenharmony_ci     *
30361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
30461847f8eSopenharmony_ci     * @since 9
30561847f8eSopenharmony_ci     */
30661847f8eSopenharmony_ci    /**
30761847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
30861847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits in F16.
30961847f8eSopenharmony_ci     *
31061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
31161847f8eSopenharmony_ci     * @crossplatform
31261847f8eSopenharmony_ci     * @since 10
31361847f8eSopenharmony_ci     */
31461847f8eSopenharmony_ci    /**
31561847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
31661847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits in F16.
31761847f8eSopenharmony_ci     *
31861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
31961847f8eSopenharmony_ci     * @crossplatform
32061847f8eSopenharmony_ci     * @atomicservice
32161847f8eSopenharmony_ci     * @since 11
32261847f8eSopenharmony_ci     */
32361847f8eSopenharmony_ci    /**
32461847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:B(8bits), G(8bits), R(8bits), A(8bits)
32561847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits in F16.
32661847f8eSopenharmony_ci     *
32761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
32861847f8eSopenharmony_ci     * @crossplatform
32961847f8eSopenharmony_ci     * @form
33061847f8eSopenharmony_ci     * @atomicservice
33161847f8eSopenharmony_ci     * @since 12
33261847f8eSopenharmony_ci     */
33361847f8eSopenharmony_ci    RGBA_F16 = 7,
33461847f8eSopenharmony_ci
33561847f8eSopenharmony_ci    /**
33661847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits
33761847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
33861847f8eSopenharmony_ci     *
33961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
34061847f8eSopenharmony_ci     * @since 9
34161847f8eSopenharmony_ci     */
34261847f8eSopenharmony_ci    /**
34361847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits
34461847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
34561847f8eSopenharmony_ci     *
34661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
34761847f8eSopenharmony_ci     * @crossplatform
34861847f8eSopenharmony_ci     * @since 10
34961847f8eSopenharmony_ci     */
35061847f8eSopenharmony_ci    /**
35161847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits
35261847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
35361847f8eSopenharmony_ci     *
35461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
35561847f8eSopenharmony_ci     * @crossplatform
35661847f8eSopenharmony_ci     * @atomicservice
35761847f8eSopenharmony_ci     * @since 11
35861847f8eSopenharmony_ci     */
35961847f8eSopenharmony_ci    /**
36061847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then V U alternately each occupies 8 bits
36161847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
36261847f8eSopenharmony_ci     *
36361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
36461847f8eSopenharmony_ci     * @crossplatform
36561847f8eSopenharmony_ci     * @form
36661847f8eSopenharmony_ci     * @atomicservice
36761847f8eSopenharmony_ci     * @since 12
36861847f8eSopenharmony_ci     */
36961847f8eSopenharmony_ci    NV21 = 8,
37061847f8eSopenharmony_ci
37161847f8eSopenharmony_ci    /**
37261847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits
37361847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
37461847f8eSopenharmony_ci     *
37561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
37661847f8eSopenharmony_ci     * @since 9
37761847f8eSopenharmony_ci     */
37861847f8eSopenharmony_ci    /**
37961847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits
38061847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
38161847f8eSopenharmony_ci     *
38261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
38361847f8eSopenharmony_ci     * @crossplatform
38461847f8eSopenharmony_ci     * @since 10
38561847f8eSopenharmony_ci     */
38661847f8eSopenharmony_ci    /**
38761847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits
38861847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
38961847f8eSopenharmony_ci     *
39061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
39161847f8eSopenharmony_ci     * @crossplatform
39261847f8eSopenharmony_ci     * @atomicservice
39361847f8eSopenharmony_ci     * @since 11
39461847f8eSopenharmony_ci     */
39561847f8eSopenharmony_ci    /**
39661847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then U V alternately each occupies 8 bits
39761847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
39861847f8eSopenharmony_ci     *
39961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
40061847f8eSopenharmony_ci     * @crossplatform
40161847f8eSopenharmony_ci     * @form
40261847f8eSopenharmony_ci     * @atomicservice
40361847f8eSopenharmony_ci     * @since 12
40461847f8eSopenharmony_ci     */
40561847f8eSopenharmony_ci    NV12 = 9,
40661847f8eSopenharmony_ci
40761847f8eSopenharmony_ci    /**
40861847f8eSopenharmony_ci     * Indicates that each pixel is stored on 32 bits. Each pixel contains 4 components:
40961847f8eSopenharmony_ci     * R(10bits), G(10bits), B(10bits), A(2bits) and are stored from the higher-order to the lower-order bits.
41061847f8eSopenharmony_ci     *
41161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
41261847f8eSopenharmony_ci     * @since 12
41361847f8eSopenharmony_ci     */
41461847f8eSopenharmony_ci    RGBA_1010102 = 10,
41561847f8eSopenharmony_ci
41661847f8eSopenharmony_ci    /**
41761847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then U V alternately each occupies 10 bits
41861847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
41961847f8eSopenharmony_ci     *
42061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
42161847f8eSopenharmony_ci     * @since 12
42261847f8eSopenharmony_ci     */
42361847f8eSopenharmony_ci    YCBCR_P010 = 11,
42461847f8eSopenharmony_ci
42561847f8eSopenharmony_ci    /**
42661847f8eSopenharmony_ci     * Indicates that the storage order is to store Y first and then V U alternately each occupies 10 bits
42761847f8eSopenharmony_ci     * and are stored from the higher-order to the lower-order bits.
42861847f8eSopenharmony_ci     *
42961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
43061847f8eSopenharmony_ci     * @since 12
43161847f8eSopenharmony_ci     */
43261847f8eSopenharmony_ci    YCRCB_P010 = 12
43361847f8eSopenharmony_ci  }
43461847f8eSopenharmony_ci
43561847f8eSopenharmony_ci  /**
43661847f8eSopenharmony_ci   * Enumerates image resolution quality.
43761847f8eSopenharmony_ci   *
43861847f8eSopenharmony_ci   * @enum { number }
43961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
44061847f8eSopenharmony_ci   * @systemapi
44161847f8eSopenharmony_ci   * @since 12
44261847f8eSopenharmony_ci   */
44361847f8eSopenharmony_ci  enum ResolutionQuality {
44461847f8eSopenharmony_ci    /**
44561847f8eSopenharmony_ci     * Low quality images, short decoding time.
44661847f8eSopenharmony_ci     * 
44761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
44861847f8eSopenharmony_ci     * @systemapi
44961847f8eSopenharmony_ci     * @since 12
45061847f8eSopenharmony_ci     */
45161847f8eSopenharmony_ci    LOW = 1,
45261847f8eSopenharmony_ci
45361847f8eSopenharmony_ci    /**
45461847f8eSopenharmony_ci     * Medium quality images, moderate decoding time.
45561847f8eSopenharmony_ci     * 
45661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
45761847f8eSopenharmony_ci     * @systemapi
45861847f8eSopenharmony_ci     * @since 12
45961847f8eSopenharmony_ci     */
46061847f8eSopenharmony_ci    MEDIUM = 2,
46161847f8eSopenharmony_ci
46261847f8eSopenharmony_ci    /**
46361847f8eSopenharmony_ci     * High quality images, longer decoding time.
46461847f8eSopenharmony_ci     * 
46561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
46661847f8eSopenharmony_ci     * @systemapi
46761847f8eSopenharmony_ci     * @since 12
46861847f8eSopenharmony_ci     */
46961847f8eSopenharmony_ci    HIGH = 3
47061847f8eSopenharmony_ci  }
47161847f8eSopenharmony_ci
47261847f8eSopenharmony_ci  /**
47361847f8eSopenharmony_ci   * Describes the size of an image.
47461847f8eSopenharmony_ci   *
47561847f8eSopenharmony_ci   * @typedef Size
47661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
47761847f8eSopenharmony_ci   * @since 6
47861847f8eSopenharmony_ci   */
47961847f8eSopenharmony_ci  /**
48061847f8eSopenharmony_ci   * Describes the size of an image.
48161847f8eSopenharmony_ci   *
48261847f8eSopenharmony_ci   * @typedef Size
48361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
48461847f8eSopenharmony_ci   * @crossplatform
48561847f8eSopenharmony_ci   * @since 10
48661847f8eSopenharmony_ci   */
48761847f8eSopenharmony_ci  /**
48861847f8eSopenharmony_ci   * Describes the size of an image.
48961847f8eSopenharmony_ci   *
49061847f8eSopenharmony_ci   * @typedef Size
49161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
49261847f8eSopenharmony_ci   * @crossplatform
49361847f8eSopenharmony_ci   * @atomicservice
49461847f8eSopenharmony_ci   * @since 11
49561847f8eSopenharmony_ci   */
49661847f8eSopenharmony_ci  /**
49761847f8eSopenharmony_ci   * Describes the size of an image.
49861847f8eSopenharmony_ci   *
49961847f8eSopenharmony_ci   * @typedef Size
50061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
50161847f8eSopenharmony_ci   * @crossplatform
50261847f8eSopenharmony_ci   * @form
50361847f8eSopenharmony_ci   * @atomicservice
50461847f8eSopenharmony_ci   * @since 12
50561847f8eSopenharmony_ci   */
50661847f8eSopenharmony_ci  interface Size {
50761847f8eSopenharmony_ci    /**
50861847f8eSopenharmony_ci     * Height
50961847f8eSopenharmony_ci     *
51061847f8eSopenharmony_ci     * @type { number }
51161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
51261847f8eSopenharmony_ci     * @since 6
51361847f8eSopenharmony_ci     */
51461847f8eSopenharmony_ci    /**
51561847f8eSopenharmony_ci     * Height
51661847f8eSopenharmony_ci     *
51761847f8eSopenharmony_ci     * @type { number }
51861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
51961847f8eSopenharmony_ci     * @crossplatform
52061847f8eSopenharmony_ci     * @since 10
52161847f8eSopenharmony_ci     */
52261847f8eSopenharmony_ci    /**
52361847f8eSopenharmony_ci     * Height
52461847f8eSopenharmony_ci     *
52561847f8eSopenharmony_ci     * @type { number }
52661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
52761847f8eSopenharmony_ci     * @crossplatform
52861847f8eSopenharmony_ci     * @atomicservice
52961847f8eSopenharmony_ci     * @since 11
53061847f8eSopenharmony_ci     */
53161847f8eSopenharmony_ci    /**
53261847f8eSopenharmony_ci     * Height
53361847f8eSopenharmony_ci     *
53461847f8eSopenharmony_ci     * @type { number }
53561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
53661847f8eSopenharmony_ci     * @crossplatform
53761847f8eSopenharmony_ci     * @form
53861847f8eSopenharmony_ci     * @atomicservice
53961847f8eSopenharmony_ci     * @since 12
54061847f8eSopenharmony_ci     */
54161847f8eSopenharmony_ci    height: number;
54261847f8eSopenharmony_ci
54361847f8eSopenharmony_ci    /**
54461847f8eSopenharmony_ci     * Width
54561847f8eSopenharmony_ci     *
54661847f8eSopenharmony_ci     * @type { number }
54761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
54861847f8eSopenharmony_ci     * @since 6
54961847f8eSopenharmony_ci     */
55061847f8eSopenharmony_ci    /**
55161847f8eSopenharmony_ci     * Width
55261847f8eSopenharmony_ci     *
55361847f8eSopenharmony_ci     * @type { number }
55461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
55561847f8eSopenharmony_ci     * @crossplatform
55661847f8eSopenharmony_ci     * @since 10
55761847f8eSopenharmony_ci     */
55861847f8eSopenharmony_ci    /**
55961847f8eSopenharmony_ci     * Width
56061847f8eSopenharmony_ci     *
56161847f8eSopenharmony_ci     * @type { number }
56261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
56361847f8eSopenharmony_ci     * @crossplatform
56461847f8eSopenharmony_ci     * @atomicservice
56561847f8eSopenharmony_ci     * @since 11
56661847f8eSopenharmony_ci     */
56761847f8eSopenharmony_ci    /**
56861847f8eSopenharmony_ci     * Width
56961847f8eSopenharmony_ci     *
57061847f8eSopenharmony_ci     * @type { number }
57161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
57261847f8eSopenharmony_ci     * @crossplatform
57361847f8eSopenharmony_ci     * @form
57461847f8eSopenharmony_ci     * @atomicservice
57561847f8eSopenharmony_ci     * @since 12
57661847f8eSopenharmony_ci     */
57761847f8eSopenharmony_ci    width: number;
57861847f8eSopenharmony_ci  }
57961847f8eSopenharmony_ci
58061847f8eSopenharmony_ci  /**
58161847f8eSopenharmony_ci   * Enumerates exchangeable image file format (Exif) information types of an image.
58261847f8eSopenharmony_ci   *
58361847f8eSopenharmony_ci   * @enum { string }
58461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
58561847f8eSopenharmony_ci   * @since 7
58661847f8eSopenharmony_ci   */
58761847f8eSopenharmony_ci  /**
58861847f8eSopenharmony_ci   * Enumerates exchangeable image file format (Exif) information types of an image.
58961847f8eSopenharmony_ci   *
59061847f8eSopenharmony_ci   * @enum { string }
59161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
59261847f8eSopenharmony_ci   * @crossplatform
59361847f8eSopenharmony_ci   * @since 10
59461847f8eSopenharmony_ci   */
59561847f8eSopenharmony_ci  enum PropertyKey {
59661847f8eSopenharmony_ci    /**
59761847f8eSopenharmony_ci     * Number of bits in each pixel of an image.
59861847f8eSopenharmony_ci     *
59961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
60061847f8eSopenharmony_ci     * @since 7
60161847f8eSopenharmony_ci     */
60261847f8eSopenharmony_ci    /**
60361847f8eSopenharmony_ci     * Number of bits in each pixel of an image.
60461847f8eSopenharmony_ci     *
60561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
60661847f8eSopenharmony_ci     * @crossplatform
60761847f8eSopenharmony_ci     * @since 10
60861847f8eSopenharmony_ci     */
60961847f8eSopenharmony_ci    BITS_PER_SAMPLE = 'BitsPerSample',
61061847f8eSopenharmony_ci
61161847f8eSopenharmony_ci    /**
61261847f8eSopenharmony_ci     * Image rotation mode.
61361847f8eSopenharmony_ci     *
61461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
61561847f8eSopenharmony_ci     * @since 7
61661847f8eSopenharmony_ci     */
61761847f8eSopenharmony_ci    /**
61861847f8eSopenharmony_ci     * Image rotation mode.
61961847f8eSopenharmony_ci     *
62061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
62161847f8eSopenharmony_ci     * @crossplatform
62261847f8eSopenharmony_ci     * @since 10
62361847f8eSopenharmony_ci     */
62461847f8eSopenharmony_ci    ORIENTATION = 'Orientation',
62561847f8eSopenharmony_ci
62661847f8eSopenharmony_ci    /**
62761847f8eSopenharmony_ci     * Image length.
62861847f8eSopenharmony_ci     *
62961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
63061847f8eSopenharmony_ci     * @since 7
63161847f8eSopenharmony_ci     */
63261847f8eSopenharmony_ci    /**
63361847f8eSopenharmony_ci     * Image length.
63461847f8eSopenharmony_ci     *
63561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
63661847f8eSopenharmony_ci     * @crossplatform
63761847f8eSopenharmony_ci     * @since 10
63861847f8eSopenharmony_ci     */
63961847f8eSopenharmony_ci    IMAGE_LENGTH = 'ImageLength',
64061847f8eSopenharmony_ci
64161847f8eSopenharmony_ci    /**
64261847f8eSopenharmony_ci     * Image width.
64361847f8eSopenharmony_ci     *
64461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
64561847f8eSopenharmony_ci     * @since 7
64661847f8eSopenharmony_ci     */
64761847f8eSopenharmony_ci    /**
64861847f8eSopenharmony_ci     * Image width.
64961847f8eSopenharmony_ci     *
65061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
65161847f8eSopenharmony_ci     * @crossplatform
65261847f8eSopenharmony_ci     * @since 10
65361847f8eSopenharmony_ci     */
65461847f8eSopenharmony_ci    IMAGE_WIDTH = 'ImageWidth',
65561847f8eSopenharmony_ci
65661847f8eSopenharmony_ci    /**
65761847f8eSopenharmony_ci     * GPS latitude.
65861847f8eSopenharmony_ci     *
65961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
66061847f8eSopenharmony_ci     * @since 7
66161847f8eSopenharmony_ci     */
66261847f8eSopenharmony_ci    /**
66361847f8eSopenharmony_ci     * GPS latitude.
66461847f8eSopenharmony_ci     *
66561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
66661847f8eSopenharmony_ci     * @crossplatform
66761847f8eSopenharmony_ci     * @since 10
66861847f8eSopenharmony_ci     */
66961847f8eSopenharmony_ci    GPS_LATITUDE = 'GPSLatitude',
67061847f8eSopenharmony_ci
67161847f8eSopenharmony_ci    /**
67261847f8eSopenharmony_ci     * GPS longitude.
67361847f8eSopenharmony_ci     *
67461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
67561847f8eSopenharmony_ci     * @since 7
67661847f8eSopenharmony_ci     */
67761847f8eSopenharmony_ci    /**
67861847f8eSopenharmony_ci     * GPS longitude.
67961847f8eSopenharmony_ci     *
68061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
68161847f8eSopenharmony_ci     * @crossplatform
68261847f8eSopenharmony_ci     * @since 10
68361847f8eSopenharmony_ci     */
68461847f8eSopenharmony_ci    GPS_LONGITUDE = 'GPSLongitude',
68561847f8eSopenharmony_ci
68661847f8eSopenharmony_ci    /**
68761847f8eSopenharmony_ci     * GPS latitude reference. For example, N indicates north latitude and S indicates south latitude.
68861847f8eSopenharmony_ci     *
68961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
69061847f8eSopenharmony_ci     * @since 7
69161847f8eSopenharmony_ci     */
69261847f8eSopenharmony_ci    /**
69361847f8eSopenharmony_ci     * GPS latitude reference. For example, N indicates north latitude and S indicates south latitude.
69461847f8eSopenharmony_ci     *
69561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
69661847f8eSopenharmony_ci     * @crossplatform
69761847f8eSopenharmony_ci     * @since 10
69861847f8eSopenharmony_ci     */
69961847f8eSopenharmony_ci    GPS_LATITUDE_REF = 'GPSLatitudeRef',
70061847f8eSopenharmony_ci
70161847f8eSopenharmony_ci    /**
70261847f8eSopenharmony_ci     * GPS longitude reference. For example, E indicates east longitude and W indicates west longitude.
70361847f8eSopenharmony_ci     *
70461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
70561847f8eSopenharmony_ci     * @since 7
70661847f8eSopenharmony_ci     */
70761847f8eSopenharmony_ci    /**
70861847f8eSopenharmony_ci     * GPS longitude reference. For example, E indicates east longitude and W indicates west longitude.
70961847f8eSopenharmony_ci     *
71061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
71161847f8eSopenharmony_ci     * @crossplatform
71261847f8eSopenharmony_ci     * @since 10
71361847f8eSopenharmony_ci     */
71461847f8eSopenharmony_ci    GPS_LONGITUDE_REF = 'GPSLongitudeRef',
71561847f8eSopenharmony_ci
71661847f8eSopenharmony_ci    /**
71761847f8eSopenharmony_ci     * Shooting time
71861847f8eSopenharmony_ci     *
71961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
72061847f8eSopenharmony_ci     * @since 9
72161847f8eSopenharmony_ci     */
72261847f8eSopenharmony_ci    /**
72361847f8eSopenharmony_ci     * Shooting time
72461847f8eSopenharmony_ci     *
72561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
72661847f8eSopenharmony_ci     * @crossplatform
72761847f8eSopenharmony_ci     * @since 10
72861847f8eSopenharmony_ci     */
72961847f8eSopenharmony_ci    DATE_TIME_ORIGINAL = 'DateTimeOriginal',
73061847f8eSopenharmony_ci
73161847f8eSopenharmony_ci    /**
73261847f8eSopenharmony_ci     * Exposure time
73361847f8eSopenharmony_ci     *
73461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
73561847f8eSopenharmony_ci     * @since 9
73661847f8eSopenharmony_ci     */
73761847f8eSopenharmony_ci    /**
73861847f8eSopenharmony_ci     * Exposure time
73961847f8eSopenharmony_ci     *
74061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
74161847f8eSopenharmony_ci     * @crossplatform
74261847f8eSopenharmony_ci     * @since 10
74361847f8eSopenharmony_ci     */
74461847f8eSopenharmony_ci    EXPOSURE_TIME = 'ExposureTime',
74561847f8eSopenharmony_ci
74661847f8eSopenharmony_ci    /**
74761847f8eSopenharmony_ci     * Scene type
74861847f8eSopenharmony_ci     *
74961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
75061847f8eSopenharmony_ci     * @since 9
75161847f8eSopenharmony_ci     */
75261847f8eSopenharmony_ci    /**
75361847f8eSopenharmony_ci     * Scene type
75461847f8eSopenharmony_ci     *
75561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
75661847f8eSopenharmony_ci     * @crossplatform
75761847f8eSopenharmony_ci     * @since 10
75861847f8eSopenharmony_ci     */
75961847f8eSopenharmony_ci    SCENE_TYPE = 'SceneType',
76061847f8eSopenharmony_ci
76161847f8eSopenharmony_ci    /**
76261847f8eSopenharmony_ci     * ISO speedratings
76361847f8eSopenharmony_ci     *
76461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
76561847f8eSopenharmony_ci     * @since 9
76661847f8eSopenharmony_ci     */
76761847f8eSopenharmony_ci    /**
76861847f8eSopenharmony_ci     * ISO speedratings
76961847f8eSopenharmony_ci     *
77061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
77161847f8eSopenharmony_ci     * @crossplatform
77261847f8eSopenharmony_ci     * @since 10
77361847f8eSopenharmony_ci     */
77461847f8eSopenharmony_ci    ISO_SPEED_RATINGS = 'ISOSpeedRatings',
77561847f8eSopenharmony_ci
77661847f8eSopenharmony_ci    /**
77761847f8eSopenharmony_ci     * Aperture value
77861847f8eSopenharmony_ci     *
77961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
78061847f8eSopenharmony_ci     * @since 9
78161847f8eSopenharmony_ci     */
78261847f8eSopenharmony_ci    /**
78361847f8eSopenharmony_ci     * Aperture value
78461847f8eSopenharmony_ci     *
78561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
78661847f8eSopenharmony_ci     * @crossplatform
78761847f8eSopenharmony_ci     * @since 10
78861847f8eSopenharmony_ci     */
78961847f8eSopenharmony_ci    F_NUMBER = 'FNumber',
79061847f8eSopenharmony_ci
79161847f8eSopenharmony_ci    /**
79261847f8eSopenharmony_ci     * Date time
79361847f8eSopenharmony_ci     *
79461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
79561847f8eSopenharmony_ci     * @since 10
79661847f8eSopenharmony_ci     */
79761847f8eSopenharmony_ci    DATE_TIME = 'DateTime',
79861847f8eSopenharmony_ci
79961847f8eSopenharmony_ci    /**
80061847f8eSopenharmony_ci     * GPS time stamp
80161847f8eSopenharmony_ci     *
80261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
80361847f8eSopenharmony_ci     * @since 10
80461847f8eSopenharmony_ci     */
80561847f8eSopenharmony_ci    GPS_TIME_STAMP = 'GPSTimeStamp',
80661847f8eSopenharmony_ci 
80761847f8eSopenharmony_ci    /**
80861847f8eSopenharmony_ci     * GPS date stamp
80961847f8eSopenharmony_ci     *
81061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
81161847f8eSopenharmony_ci     * @since 10
81261847f8eSopenharmony_ci     */
81361847f8eSopenharmony_ci    GPS_DATE_STAMP = 'GPSDateStamp',
81461847f8eSopenharmony_ci 
81561847f8eSopenharmony_ci    /**
81661847f8eSopenharmony_ci     * Image description
81761847f8eSopenharmony_ci     *
81861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
81961847f8eSopenharmony_ci     * @since 10
82061847f8eSopenharmony_ci     */
82161847f8eSopenharmony_ci    IMAGE_DESCRIPTION = 'ImageDescription',
82261847f8eSopenharmony_ci 
82361847f8eSopenharmony_ci    /**
82461847f8eSopenharmony_ci     * Make
82561847f8eSopenharmony_ci     *
82661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
82761847f8eSopenharmony_ci     * @since 10
82861847f8eSopenharmony_ci     */
82961847f8eSopenharmony_ci    MAKE = 'Make',
83061847f8eSopenharmony_ci 
83161847f8eSopenharmony_ci    /**
83261847f8eSopenharmony_ci     * Model
83361847f8eSopenharmony_ci     *
83461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
83561847f8eSopenharmony_ci     * @since 10
83661847f8eSopenharmony_ci     */
83761847f8eSopenharmony_ci    MODEL = 'Model',
83861847f8eSopenharmony_ci 
83961847f8eSopenharmony_ci    /**
84061847f8eSopenharmony_ci     * Photo mode
84161847f8eSopenharmony_ci     *
84261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
84361847f8eSopenharmony_ci     * @since 10
84461847f8eSopenharmony_ci     */
84561847f8eSopenharmony_ci    PHOTO_MODE = 'PhotoMode',
84661847f8eSopenharmony_ci 
84761847f8eSopenharmony_ci    /**
84861847f8eSopenharmony_ci     * Sensitivity type
84961847f8eSopenharmony_ci     *
85061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
85161847f8eSopenharmony_ci     * @since 10
85261847f8eSopenharmony_ci     */
85361847f8eSopenharmony_ci    SENSITIVITY_TYPE = 'SensitivityType',
85461847f8eSopenharmony_ci 
85561847f8eSopenharmony_ci    /**
85661847f8eSopenharmony_ci     * Standard output sensitivity
85761847f8eSopenharmony_ci     *
85861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
85961847f8eSopenharmony_ci     * @since 10
86061847f8eSopenharmony_ci     */
86161847f8eSopenharmony_ci    STANDARD_OUTPUT_SENSITIVITY = 'StandardOutputSensitivity',
86261847f8eSopenharmony_ci 
86361847f8eSopenharmony_ci    /**
86461847f8eSopenharmony_ci     * Recommended exposure index
86561847f8eSopenharmony_ci     *
86661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
86761847f8eSopenharmony_ci     * @since 10
86861847f8eSopenharmony_ci     */
86961847f8eSopenharmony_ci    RECOMMENDED_EXPOSURE_INDEX = 'RecommendedExposureIndex',
87061847f8eSopenharmony_ci 
87161847f8eSopenharmony_ci    /**
87261847f8eSopenharmony_ci     * ISO speed
87361847f8eSopenharmony_ci     *
87461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
87561847f8eSopenharmony_ci     * @since 10
87661847f8eSopenharmony_ci     */
87761847f8eSopenharmony_ci    ISO_SPEED = 'ISOSpeedRatings',
87861847f8eSopenharmony_ci 
87961847f8eSopenharmony_ci    /**
88061847f8eSopenharmony_ci     * Aperture value
88161847f8eSopenharmony_ci     *
88261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
88361847f8eSopenharmony_ci     * @since 10
88461847f8eSopenharmony_ci     */
88561847f8eSopenharmony_ci    APERTURE_VALUE = 'ApertureValue',
88661847f8eSopenharmony_ci 
88761847f8eSopenharmony_ci    /**
88861847f8eSopenharmony_ci     * Exposure bias value
88961847f8eSopenharmony_ci     *
89061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
89161847f8eSopenharmony_ci     * @since 10
89261847f8eSopenharmony_ci     */
89361847f8eSopenharmony_ci    EXPOSURE_BIAS_VALUE = 'ExposureBiasValue',
89461847f8eSopenharmony_ci 
89561847f8eSopenharmony_ci    /**
89661847f8eSopenharmony_ci     * Metering mode
89761847f8eSopenharmony_ci     *
89861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
89961847f8eSopenharmony_ci     * @since 10
90061847f8eSopenharmony_ci     */
90161847f8eSopenharmony_ci    METERING_MODE = 'MeteringMode',
90261847f8eSopenharmony_ci 
90361847f8eSopenharmony_ci    /**
90461847f8eSopenharmony_ci     * Light source
90561847f8eSopenharmony_ci     *
90661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
90761847f8eSopenharmony_ci     * @since 10
90861847f8eSopenharmony_ci     */
90961847f8eSopenharmony_ci    LIGHT_SOURCE = 'LightSource',
91061847f8eSopenharmony_ci 
91161847f8eSopenharmony_ci    /**
91261847f8eSopenharmony_ci     * Flash
91361847f8eSopenharmony_ci     *
91461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
91561847f8eSopenharmony_ci     * @since 10
91661847f8eSopenharmony_ci     */
91761847f8eSopenharmony_ci    FLASH = 'Flash',
91861847f8eSopenharmony_ci 
91961847f8eSopenharmony_ci    /**
92061847f8eSopenharmony_ci     * Focal length
92161847f8eSopenharmony_ci     *
92261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
92361847f8eSopenharmony_ci     * @since 10
92461847f8eSopenharmony_ci     */
92561847f8eSopenharmony_ci    FOCAL_LENGTH = 'FocalLength',
92661847f8eSopenharmony_ci 
92761847f8eSopenharmony_ci    /**
92861847f8eSopenharmony_ci     * User comment
92961847f8eSopenharmony_ci     *
93061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
93161847f8eSopenharmony_ci     * @since 10
93261847f8eSopenharmony_ci     */
93361847f8eSopenharmony_ci    USER_COMMENT = 'UserComment',
93461847f8eSopenharmony_ci 
93561847f8eSopenharmony_ci    /**
93661847f8eSopenharmony_ci     * Pixel x dimension
93761847f8eSopenharmony_ci     *
93861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
93961847f8eSopenharmony_ci     * @since 10
94061847f8eSopenharmony_ci     */
94161847f8eSopenharmony_ci    PIXEL_X_DIMENSION = 'PixelXDimension',
94261847f8eSopenharmony_ci 
94361847f8eSopenharmony_ci    /**
94461847f8eSopenharmony_ci     * Pixel y dimension
94561847f8eSopenharmony_ci     *
94661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
94761847f8eSopenharmony_ci     * @since 10
94861847f8eSopenharmony_ci     */
94961847f8eSopenharmony_ci    PIXEL_Y_DIMENSION = 'PixelYDimension',
95061847f8eSopenharmony_ci 
95161847f8eSopenharmony_ci    /**
95261847f8eSopenharmony_ci     * White balance
95361847f8eSopenharmony_ci     *
95461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
95561847f8eSopenharmony_ci     * @since 10
95661847f8eSopenharmony_ci     */
95761847f8eSopenharmony_ci    WHITE_BALANCE = 'WhiteBalance',
95861847f8eSopenharmony_ci 
95961847f8eSopenharmony_ci    /**
96061847f8eSopenharmony_ci     * Focal length in 35mm film
96161847f8eSopenharmony_ci     *
96261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
96361847f8eSopenharmony_ci     * @since 10
96461847f8eSopenharmony_ci     */
96561847f8eSopenharmony_ci    FOCAL_LENGTH_IN_35_MM_FILM = 'FocalLengthIn35mmFilm',
96661847f8eSopenharmony_ci 
96761847f8eSopenharmony_ci    /**
96861847f8eSopenharmony_ci     * Capture mode
96961847f8eSopenharmony_ci     *
97061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
97161847f8eSopenharmony_ci     * @since 10
97261847f8eSopenharmony_ci     */
97361847f8eSopenharmony_ci    CAPTURE_MODE = 'HwMnoteCaptureMode',
97461847f8eSopenharmony_ci 
97561847f8eSopenharmony_ci    /**
97661847f8eSopenharmony_ci     * Physical aperture
97761847f8eSopenharmony_ci     *
97861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
97961847f8eSopenharmony_ci     * @since 10
98061847f8eSopenharmony_ci     */
98161847f8eSopenharmony_ci    PHYSICAL_APERTURE = 'HwMnotePhysicalAperture',
98261847f8eSopenharmony_ci
98361847f8eSopenharmony_ci    /**
98461847f8eSopenharmony_ci     * Roll Angle
98561847f8eSopenharmony_ci     *
98661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
98761847f8eSopenharmony_ci     * @crossplatform
98861847f8eSopenharmony_ci     * @since 11
98961847f8eSopenharmony_ci     */
99061847f8eSopenharmony_ci    ROLL_ANGLE = 'HwMnoteRollAngle',
99161847f8eSopenharmony_ci
99261847f8eSopenharmony_ci    /**
99361847f8eSopenharmony_ci     * Pitch Angle
99461847f8eSopenharmony_ci     *
99561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
99661847f8eSopenharmony_ci     * @crossplatform
99761847f8eSopenharmony_ci     * @since 11
99861847f8eSopenharmony_ci     */
99961847f8eSopenharmony_ci    PITCH_ANGLE = 'HwMnotePitchAngle',
100061847f8eSopenharmony_ci
100161847f8eSopenharmony_ci    /**
100261847f8eSopenharmony_ci     * Capture Scene: Food
100361847f8eSopenharmony_ci     *
100461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
100561847f8eSopenharmony_ci     * @crossplatform
100661847f8eSopenharmony_ci     * @since 11
100761847f8eSopenharmony_ci     */
100861847f8eSopenharmony_ci    SCENE_FOOD_CONF = 'HwMnoteSceneFoodConf',
100961847f8eSopenharmony_ci
101061847f8eSopenharmony_ci    /**
101161847f8eSopenharmony_ci     * Capture Scene: Stage
101261847f8eSopenharmony_ci     *
101361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
101461847f8eSopenharmony_ci     * @crossplatform
101561847f8eSopenharmony_ci     * @since 11
101661847f8eSopenharmony_ci     */
101761847f8eSopenharmony_ci    SCENE_STAGE_CONF = 'HwMnoteSceneStageConf',
101861847f8eSopenharmony_ci
101961847f8eSopenharmony_ci    /**
102061847f8eSopenharmony_ci     * Capture Scene: Blue Sky
102161847f8eSopenharmony_ci     *
102261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
102361847f8eSopenharmony_ci     * @crossplatform
102461847f8eSopenharmony_ci     * @since 11
102561847f8eSopenharmony_ci     */
102661847f8eSopenharmony_ci    SCENE_BLUE_SKY_CONF = 'HwMnoteSceneBlueSkyConf',
102761847f8eSopenharmony_ci
102861847f8eSopenharmony_ci    /**
102961847f8eSopenharmony_ci     * Capture Scene: Green Plant
103061847f8eSopenharmony_ci     *
103161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
103261847f8eSopenharmony_ci     * @crossplatform
103361847f8eSopenharmony_ci     * @since 11
103461847f8eSopenharmony_ci     */
103561847f8eSopenharmony_ci    SCENE_GREEN_PLANT_CONF = 'HwMnoteSceneGreenPlantConf',
103661847f8eSopenharmony_ci
103761847f8eSopenharmony_ci    /**
103861847f8eSopenharmony_ci     * Capture Scene: Beach
103961847f8eSopenharmony_ci     *
104061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
104161847f8eSopenharmony_ci     * @crossplatform
104261847f8eSopenharmony_ci     * @since 11
104361847f8eSopenharmony_ci     */
104461847f8eSopenharmony_ci    SCENE_BEACH_CONF = 'HwMnoteSceneBeachConf',
104561847f8eSopenharmony_ci
104661847f8eSopenharmony_ci    /**
104761847f8eSopenharmony_ci     * Capture Scene: Snow
104861847f8eSopenharmony_ci     *
104961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
105061847f8eSopenharmony_ci     * @crossplatform
105161847f8eSopenharmony_ci     * @since 11
105261847f8eSopenharmony_ci     */
105361847f8eSopenharmony_ci    SCENE_SNOW_CONF = 'HwMnoteSceneSnowConf',
105461847f8eSopenharmony_ci
105561847f8eSopenharmony_ci    /**
105661847f8eSopenharmony_ci     * Capture Scene: Sunset
105761847f8eSopenharmony_ci     *
105861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
105961847f8eSopenharmony_ci     * @crossplatform
106061847f8eSopenharmony_ci     * @since 11
106161847f8eSopenharmony_ci     */
106261847f8eSopenharmony_ci    SCENE_SUNSET_CONF = 'HwMnoteSceneSunsetConf',
106361847f8eSopenharmony_ci
106461847f8eSopenharmony_ci    /**
106561847f8eSopenharmony_ci     * Capture Scene: Flowers
106661847f8eSopenharmony_ci     *
106761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
106861847f8eSopenharmony_ci     * @crossplatform
106961847f8eSopenharmony_ci     * @since 11
107061847f8eSopenharmony_ci     */
107161847f8eSopenharmony_ci    SCENE_FLOWERS_CONF = 'HwMnoteSceneFlowersConf',
107261847f8eSopenharmony_ci
107361847f8eSopenharmony_ci    /**
107461847f8eSopenharmony_ci     * Capture Scene: Night
107561847f8eSopenharmony_ci     *
107661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
107761847f8eSopenharmony_ci     * @crossplatform
107861847f8eSopenharmony_ci     * @since 11
107961847f8eSopenharmony_ci     */
108061847f8eSopenharmony_ci    SCENE_NIGHT_CONF = 'HwMnoteSceneNightConf',
108161847f8eSopenharmony_ci
108261847f8eSopenharmony_ci    /**
108361847f8eSopenharmony_ci     * Capture Scene: Text
108461847f8eSopenharmony_ci     *
108561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
108661847f8eSopenharmony_ci     * @crossplatform
108761847f8eSopenharmony_ci     * @since 11
108861847f8eSopenharmony_ci     */
108961847f8eSopenharmony_ci    SCENE_TEXT_CONF = 'HwMnoteSceneTextConf',
109061847f8eSopenharmony_ci
109161847f8eSopenharmony_ci    /**
109261847f8eSopenharmony_ci     * Face Count
109361847f8eSopenharmony_ci     *
109461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
109561847f8eSopenharmony_ci     * @crossplatform
109661847f8eSopenharmony_ci     * @since 11
109761847f8eSopenharmony_ci     */
109861847f8eSopenharmony_ci    FACE_COUNT = 'HwMnoteFaceCount',
109961847f8eSopenharmony_ci
110061847f8eSopenharmony_ci    /**
110161847f8eSopenharmony_ci     * Focus Mode
110261847f8eSopenharmony_ci     *
110361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
110461847f8eSopenharmony_ci     * @crossplatform
110561847f8eSopenharmony_ci     * @since 11
110661847f8eSopenharmony_ci     */
110761847f8eSopenharmony_ci    FOCUS_MODE = 'HwMnoteFocusMode',
110861847f8eSopenharmony_ci  
110961847f8eSopenharmony_ci    /**
111061847f8eSopenharmony_ci     * The scheme used for image compression.
111161847f8eSopenharmony_ci     *
111261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
111361847f8eSopenharmony_ci     * @crossplatform
111461847f8eSopenharmony_ci     * @since 12
111561847f8eSopenharmony_ci     */
111661847f8eSopenharmony_ci    COMPRESSION = 'Compression',
111761847f8eSopenharmony_ci
111861847f8eSopenharmony_ci    /**
111961847f8eSopenharmony_ci     * Pixel composition, such as RGB or YCbCr.
112061847f8eSopenharmony_ci     *
112161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
112261847f8eSopenharmony_ci     * @crossplatform
112361847f8eSopenharmony_ci     * @since 12
112461847f8eSopenharmony_ci     */
112561847f8eSopenharmony_ci    PHOTOMETRIC_INTERPRETATION = 'PhotometricInterpretation',
112661847f8eSopenharmony_ci
112761847f8eSopenharmony_ci    /**
112861847f8eSopenharmony_ci     * For each strip, the byte offset of that strip.
112961847f8eSopenharmony_ci     *
113061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
113161847f8eSopenharmony_ci     * @crossplatform
113261847f8eSopenharmony_ci     * @since 12
113361847f8eSopenharmony_ci     */
113461847f8eSopenharmony_ci    STRIP_OFFSETS = 'StripOffsets',
113561847f8eSopenharmony_ci
113661847f8eSopenharmony_ci    /**
113761847f8eSopenharmony_ci     * The number of components per pixel.
113861847f8eSopenharmony_ci     *
113961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
114061847f8eSopenharmony_ci     * @crossplatform
114161847f8eSopenharmony_ci     * @since 12
114261847f8eSopenharmony_ci     */
114361847f8eSopenharmony_ci    SAMPLES_PER_PIXEL = 'SamplesPerPixel',
114461847f8eSopenharmony_ci
114561847f8eSopenharmony_ci    /**
114661847f8eSopenharmony_ci     * The number of rows per strip of image data.
114761847f8eSopenharmony_ci     *
114861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
114961847f8eSopenharmony_ci     * @crossplatform
115061847f8eSopenharmony_ci     * @since 12
115161847f8eSopenharmony_ci     */
115261847f8eSopenharmony_ci    ROWS_PER_STRIP = 'RowsPerStrip',
115361847f8eSopenharmony_ci
115461847f8eSopenharmony_ci    /**
115561847f8eSopenharmony_ci     * The total number of bytes in each strip of image data.
115661847f8eSopenharmony_ci     *
115761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
115861847f8eSopenharmony_ci     * @crossplatform
115961847f8eSopenharmony_ci     * @since 12
116061847f8eSopenharmony_ci     */
116161847f8eSopenharmony_ci    STRIP_BYTE_COUNTS = 'StripByteCounts',
116261847f8eSopenharmony_ci
116361847f8eSopenharmony_ci    /**
116461847f8eSopenharmony_ci     * The image resolution in the width direction.
116561847f8eSopenharmony_ci     *
116661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
116761847f8eSopenharmony_ci     * @crossplatform
116861847f8eSopenharmony_ci     * @since 12
116961847f8eSopenharmony_ci     */
117061847f8eSopenharmony_ci    X_RESOLUTION = 'XResolution',
117161847f8eSopenharmony_ci
117261847f8eSopenharmony_ci    /**
117361847f8eSopenharmony_ci     * The image resolution in the height direction.
117461847f8eSopenharmony_ci     *
117561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
117661847f8eSopenharmony_ci     * @crossplatform
117761847f8eSopenharmony_ci     * @since 12
117861847f8eSopenharmony_ci     */
117961847f8eSopenharmony_ci    Y_RESOLUTION = 'YResolution',
118061847f8eSopenharmony_ci
118161847f8eSopenharmony_ci    /**
118261847f8eSopenharmony_ci     * Indicates whether pixel components are recorded in a chunky or planar format.
118361847f8eSopenharmony_ci     *
118461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
118561847f8eSopenharmony_ci     * @crossplatform
118661847f8eSopenharmony_ci     * @since 12
118761847f8eSopenharmony_ci     */
118861847f8eSopenharmony_ci    PLANAR_CONFIGURATION = 'PlanarConfiguration',
118961847f8eSopenharmony_ci
119061847f8eSopenharmony_ci    /**
119161847f8eSopenharmony_ci     * The unit used to measure XResolution and YResolution.
119261847f8eSopenharmony_ci     *
119361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
119461847f8eSopenharmony_ci     * @crossplatform
119561847f8eSopenharmony_ci     * @since 12
119661847f8eSopenharmony_ci     */
119761847f8eSopenharmony_ci    RESOLUTION_UNIT = 'ResolutionUnit',
119861847f8eSopenharmony_ci
119961847f8eSopenharmony_ci    /**
120061847f8eSopenharmony_ci     * The transfer function for the image, typically used for color correction.
120161847f8eSopenharmony_ci     *
120261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
120361847f8eSopenharmony_ci     * @crossplatform
120461847f8eSopenharmony_ci     * @since 12
120561847f8eSopenharmony_ci     */
120661847f8eSopenharmony_ci    TRANSFER_FUNCTION = 'TransferFunction',
120761847f8eSopenharmony_ci
120861847f8eSopenharmony_ci    /**
120961847f8eSopenharmony_ci     * The name and version of the software used to generate the image.
121061847f8eSopenharmony_ci     *
121161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
121261847f8eSopenharmony_ci     * @crossplatform
121361847f8eSopenharmony_ci     * @since 12
121461847f8eSopenharmony_ci     */
121561847f8eSopenharmony_ci    SOFTWARE = 'Software',
121661847f8eSopenharmony_ci
121761847f8eSopenharmony_ci    /**
121861847f8eSopenharmony_ci     * The name of the person who created the image.
121961847f8eSopenharmony_ci     *
122061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
122161847f8eSopenharmony_ci     * @crossplatform
122261847f8eSopenharmony_ci     * @since 12
122361847f8eSopenharmony_ci     */
122461847f8eSopenharmony_ci    ARTIST = 'Artist',
122561847f8eSopenharmony_ci
122661847f8eSopenharmony_ci    /**
122761847f8eSopenharmony_ci     * The chromaticity of the white point of the image.
122861847f8eSopenharmony_ci     *
122961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
123061847f8eSopenharmony_ci     * @crossplatform
123161847f8eSopenharmony_ci     * @since 12
123261847f8eSopenharmony_ci     */
123361847f8eSopenharmony_ci    WHITE_POINT = 'WhitePoint',
123461847f8eSopenharmony_ci
123561847f8eSopenharmony_ci    /**
123661847f8eSopenharmony_ci     * The chromaticity of the primary colors of the image.
123761847f8eSopenharmony_ci     *
123861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
123961847f8eSopenharmony_ci     * @crossplatform
124061847f8eSopenharmony_ci     * @since 12
124161847f8eSopenharmony_ci     */
124261847f8eSopenharmony_ci    PRIMARY_CHROMATICITIES = 'PrimaryChromaticities',
124361847f8eSopenharmony_ci
124461847f8eSopenharmony_ci    /**
124561847f8eSopenharmony_ci     * The matrix coefficients for transformation from RGB to YCbCr image data.
124661847f8eSopenharmony_ci     *
124761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
124861847f8eSopenharmony_ci     * @crossplatform
124961847f8eSopenharmony_ci     * @since 12
125061847f8eSopenharmony_ci     */
125161847f8eSopenharmony_ci    YCBCR_COEFFICIENTS = 'YCbCrCoefficients',
125261847f8eSopenharmony_ci
125361847f8eSopenharmony_ci    /**
125461847f8eSopenharmony_ci     * The sampling ratio of chrominance components to the luminance component.
125561847f8eSopenharmony_ci     *
125661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
125761847f8eSopenharmony_ci     * @crossplatform
125861847f8eSopenharmony_ci     * @since 12
125961847f8eSopenharmony_ci     */
126061847f8eSopenharmony_ci    YCBCR_SUB_SAMPLING = 'YCbCrSubSampling',
126161847f8eSopenharmony_ci
126261847f8eSopenharmony_ci    /**
126361847f8eSopenharmony_ci     * The position of chrominance components in relation to the luminance component.
126461847f8eSopenharmony_ci     *
126561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
126661847f8eSopenharmony_ci     * @crossplatform
126761847f8eSopenharmony_ci     * @since 12
126861847f8eSopenharmony_ci     */
126961847f8eSopenharmony_ci    YCBCR_POSITIONING = 'YCbCrPositioning',
127061847f8eSopenharmony_ci
127161847f8eSopenharmony_ci    /**
127261847f8eSopenharmony_ci     * The reference black point value and reference white point value.
127361847f8eSopenharmony_ci     *
127461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
127561847f8eSopenharmony_ci     * @crossplatform
127661847f8eSopenharmony_ci     * @since 12
127761847f8eSopenharmony_ci     */
127861847f8eSopenharmony_ci    REFERENCE_BLACK_WHITE = 'ReferenceBlackWhite',
127961847f8eSopenharmony_ci
128061847f8eSopenharmony_ci    /**
128161847f8eSopenharmony_ci     * Copyright information for the image.
128261847f8eSopenharmony_ci     *
128361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
128461847f8eSopenharmony_ci     * @crossplatform
128561847f8eSopenharmony_ci     * @since 12
128661847f8eSopenharmony_ci     */
128761847f8eSopenharmony_ci    COPYRIGHT = 'Copyright',
128861847f8eSopenharmony_ci
128961847f8eSopenharmony_ci    /**
129061847f8eSopenharmony_ci     * The offset to the start byte (SOI) of JPEG compressed thumbnail data.
129161847f8eSopenharmony_ci     *
129261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
129361847f8eSopenharmony_ci     * @crossplatform
129461847f8eSopenharmony_ci     * @since 12
129561847f8eSopenharmony_ci     */
129661847f8eSopenharmony_ci    JPEG_INTERCHANGE_FORMAT = 'JPEGInterchangeFormat',
129761847f8eSopenharmony_ci
129861847f8eSopenharmony_ci    /**
129961847f8eSopenharmony_ci     * The number of bytes of JPEG compressed thumbnail data.
130061847f8eSopenharmony_ci     *
130161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
130261847f8eSopenharmony_ci     * @crossplatform
130361847f8eSopenharmony_ci     * @since 12
130461847f8eSopenharmony_ci     */
130561847f8eSopenharmony_ci    JPEG_INTERCHANGE_FORMAT_LENGTH = 'JPEGInterchangeFormatLength',
130661847f8eSopenharmony_ci
130761847f8eSopenharmony_ci    /**
130861847f8eSopenharmony_ci     * The class of the program used by the camera to set exposure when the picture is taken.
130961847f8eSopenharmony_ci     *
131061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
131161847f8eSopenharmony_ci     * @crossplatform
131261847f8eSopenharmony_ci     * @since 12
131361847f8eSopenharmony_ci     */
131461847f8eSopenharmony_ci    EXPOSURE_PROGRAM = 'ExposureProgram',
131561847f8eSopenharmony_ci
131661847f8eSopenharmony_ci    /**
131761847f8eSopenharmony_ci     * Indicates the spectral sensitivity of each channel of the camera used.
131861847f8eSopenharmony_ci     *
131961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
132061847f8eSopenharmony_ci     * @crossplatform
132161847f8eSopenharmony_ci     * @since 12
132261847f8eSopenharmony_ci     */
132361847f8eSopenharmony_ci    SPECTRAL_SENSITIVITY = 'SpectralSensitivity',
132461847f8eSopenharmony_ci
132561847f8eSopenharmony_ci    /**
132661847f8eSopenharmony_ci     * Indicates the Opto-Electric Conversion Function (OECF) specified in ISO 14524.
132761847f8eSopenharmony_ci     *
132861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
132961847f8eSopenharmony_ci     * @crossplatform
133061847f8eSopenharmony_ci     * @since 12
133161847f8eSopenharmony_ci     */
133261847f8eSopenharmony_ci    OECF = 'OECF',
133361847f8eSopenharmony_ci
133461847f8eSopenharmony_ci    /**
133561847f8eSopenharmony_ci     * The version of the Exif standard supported.
133661847f8eSopenharmony_ci     *
133761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
133861847f8eSopenharmony_ci     * @crossplatform
133961847f8eSopenharmony_ci     * @since 12
134061847f8eSopenharmony_ci     */
134161847f8eSopenharmony_ci    EXIF_VERSION = 'ExifVersion',
134261847f8eSopenharmony_ci
134361847f8eSopenharmony_ci    /**
134461847f8eSopenharmony_ci     * The date and time when the image was stored as digital data.
134561847f8eSopenharmony_ci     *
134661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
134761847f8eSopenharmony_ci     * @crossplatform
134861847f8eSopenharmony_ci     * @since 12
134961847f8eSopenharmony_ci     */
135061847f8eSopenharmony_ci    DATE_TIME_DIGITIZED = 'DateTimeDigitized',
135161847f8eSopenharmony_ci
135261847f8eSopenharmony_ci    /**
135361847f8eSopenharmony_ci     * Information specific to compressed data.
135461847f8eSopenharmony_ci     *
135561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
135661847f8eSopenharmony_ci     * @crossplatform
135761847f8eSopenharmony_ci     * @since 12
135861847f8eSopenharmony_ci     */
135961847f8eSopenharmony_ci    COMPONENTS_CONFIGURATION = 'ComponentsConfiguration',
136061847f8eSopenharmony_ci
136161847f8eSopenharmony_ci    /**
136261847f8eSopenharmony_ci     * The shutter speed, expressed as an APEX (Additive System of Photographic Exposure) value.
136361847f8eSopenharmony_ci     *
136461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
136561847f8eSopenharmony_ci     * @crossplatform
136661847f8eSopenharmony_ci     * @since 12
136761847f8eSopenharmony_ci     */
136861847f8eSopenharmony_ci    SHUTTER_SPEED = 'ShutterSpeedValue',
136961847f8eSopenharmony_ci
137061847f8eSopenharmony_ci    /**
137161847f8eSopenharmony_ci     * The brightness value of the image, in APEX units.
137261847f8eSopenharmony_ci     *
137361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
137461847f8eSopenharmony_ci     * @crossplatform
137561847f8eSopenharmony_ci     * @since 12
137661847f8eSopenharmony_ci     */
137761847f8eSopenharmony_ci    BRIGHTNESS_VALUE = 'BrightnessValue',
137861847f8eSopenharmony_ci
137961847f8eSopenharmony_ci    /**
138061847f8eSopenharmony_ci     * The smallest F number of lens.
138161847f8eSopenharmony_ci     *
138261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
138361847f8eSopenharmony_ci     * @crossplatform
138461847f8eSopenharmony_ci     * @since 12
138561847f8eSopenharmony_ci     */
138661847f8eSopenharmony_ci    MAX_APERTURE_VALUE = 'MaxApertureValue',
138761847f8eSopenharmony_ci
138861847f8eSopenharmony_ci    /**
138961847f8eSopenharmony_ci     * The distance to the subject, measured in meters.
139061847f8eSopenharmony_ci     *
139161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
139261847f8eSopenharmony_ci     * @crossplatform
139361847f8eSopenharmony_ci     * @since 12
139461847f8eSopenharmony_ci     */
139561847f8eSopenharmony_ci    SUBJECT_DISTANCE = 'SubjectDistance',
139661847f8eSopenharmony_ci
139761847f8eSopenharmony_ci    /**
139861847f8eSopenharmony_ci     * This tag indicate the location and area of the main subject in the overall scene.
139961847f8eSopenharmony_ci     *
140061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
140161847f8eSopenharmony_ci     * @crossplatform
140261847f8eSopenharmony_ci     * @since 12
140361847f8eSopenharmony_ci     */
140461847f8eSopenharmony_ci    SUBJECT_AREA = 'SubjectArea',
140561847f8eSopenharmony_ci
140661847f8eSopenharmony_ci    /**
140761847f8eSopenharmony_ci     * A tag for manufacturers of Exif/DCF writers to record any desired information.
140861847f8eSopenharmony_ci     *
140961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
141061847f8eSopenharmony_ci     * @crossplatform
141161847f8eSopenharmony_ci     * @since 12
141261847f8eSopenharmony_ci     */
141361847f8eSopenharmony_ci    MAKER_NOTE = 'MakerNote',
141461847f8eSopenharmony_ci
141561847f8eSopenharmony_ci    /**
141661847f8eSopenharmony_ci     * A tag for record fractions of seconds for the DateTime tag.
141761847f8eSopenharmony_ci     *
141861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
141961847f8eSopenharmony_ci     * @crossplatform
142061847f8eSopenharmony_ci     * @since 12
142161847f8eSopenharmony_ci     */
142261847f8eSopenharmony_ci    SUBSEC_TIME = 'SubsecTime',
142361847f8eSopenharmony_ci
142461847f8eSopenharmony_ci    /**
142561847f8eSopenharmony_ci     * A tag used to record fractions of seconds for the DateTimeOriginal tag.
142661847f8eSopenharmony_ci     *
142761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
142861847f8eSopenharmony_ci     * @crossplatform
142961847f8eSopenharmony_ci     * @since 12
143061847f8eSopenharmony_ci     */
143161847f8eSopenharmony_ci    SUBSEC_TIME_ORIGINAL = 'SubsecTimeOriginal',
143261847f8eSopenharmony_ci
143361847f8eSopenharmony_ci    /**
143461847f8eSopenharmony_ci     * A tag used to record fractions of seconds for the DateTimeDigitized tag.
143561847f8eSopenharmony_ci     *
143661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
143761847f8eSopenharmony_ci     * @crossplatform
143861847f8eSopenharmony_ci     * @since 12
143961847f8eSopenharmony_ci     */
144061847f8eSopenharmony_ci    SUBSEC_TIME_DIGITIZED = 'SubsecTimeDigitized',
144161847f8eSopenharmony_ci
144261847f8eSopenharmony_ci    /**
144361847f8eSopenharmony_ci     * This tag denotes the Flashpix format version supported by an FPXR file, enhancing device compatibility.
144461847f8eSopenharmony_ci     *
144561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
144661847f8eSopenharmony_ci     * @crossplatform
144761847f8eSopenharmony_ci     * @since 12
144861847f8eSopenharmony_ci     */
144961847f8eSopenharmony_ci    FLASHPIX_VERSION = 'FlashpixVersion',
145061847f8eSopenharmony_ci
145161847f8eSopenharmony_ci    /**
145261847f8eSopenharmony_ci     * The color space information tag, often recorded as the color space specifier.
145361847f8eSopenharmony_ci     *
145461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
145561847f8eSopenharmony_ci     * @crossplatform
145661847f8eSopenharmony_ci     * @since 12
145761847f8eSopenharmony_ci     */
145861847f8eSopenharmony_ci    COLOR_SPACE = 'ColorSpace',
145961847f8eSopenharmony_ci
146061847f8eSopenharmony_ci    /**
146161847f8eSopenharmony_ci     * The name of an audio file related to the image data.
146261847f8eSopenharmony_ci     *
146361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
146461847f8eSopenharmony_ci     * @crossplatform
146561847f8eSopenharmony_ci     * @since 12
146661847f8eSopenharmony_ci     */
146761847f8eSopenharmony_ci    RELATED_SOUND_FILE = 'RelatedSoundFile',
146861847f8eSopenharmony_ci
146961847f8eSopenharmony_ci    /**
147061847f8eSopenharmony_ci     * Strobe energy at image capture, in BCPS.
147161847f8eSopenharmony_ci     *
147261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
147361847f8eSopenharmony_ci     * @crossplatform
147461847f8eSopenharmony_ci     * @since 12
147561847f8eSopenharmony_ci     */
147661847f8eSopenharmony_ci    FLASH_ENERGY = 'FlashEnergy',
147761847f8eSopenharmony_ci
147861847f8eSopenharmony_ci    /**
147961847f8eSopenharmony_ci     * Camera or input device spatial frequency table.
148061847f8eSopenharmony_ci     *
148161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
148261847f8eSopenharmony_ci     * @crossplatform
148361847f8eSopenharmony_ci     * @since 12
148461847f8eSopenharmony_ci     */
148561847f8eSopenharmony_ci    SPATIAL_FREQUENCY_RESPONSE = 'SpatialFrequencyResponse',
148661847f8eSopenharmony_ci
148761847f8eSopenharmony_ci    /**
148861847f8eSopenharmony_ci     * Pixels per FocalPlaneResolutionUnit in the image width.
148961847f8eSopenharmony_ci     *
149061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
149161847f8eSopenharmony_ci     * @crossplatform
149261847f8eSopenharmony_ci     * @since 12
149361847f8eSopenharmony_ci     */
149461847f8eSopenharmony_ci    FOCAL_PLANE_X_RESOLUTION = 'FocalPlaneXResolution',
149561847f8eSopenharmony_ci
149661847f8eSopenharmony_ci    /**
149761847f8eSopenharmony_ci     * Pixels per FocalPlaneResolutionUnit in the image height.
149861847f8eSopenharmony_ci     *
149961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
150061847f8eSopenharmony_ci     * @crossplatform
150161847f8eSopenharmony_ci     * @since 12
150261847f8eSopenharmony_ci     */
150361847f8eSopenharmony_ci    FOCAL_PLANE_Y_RESOLUTION = 'FocalPlaneYResolution',
150461847f8eSopenharmony_ci
150561847f8eSopenharmony_ci    /**
150661847f8eSopenharmony_ci     * Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution.
150761847f8eSopenharmony_ci     *
150861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
150961847f8eSopenharmony_ci     * @crossplatform
151061847f8eSopenharmony_ci     * @since 12
151161847f8eSopenharmony_ci     */
151261847f8eSopenharmony_ci    FOCAL_PLANE_RESOLUTION_UNIT = 'FocalPlaneResolutionUnit',
151361847f8eSopenharmony_ci
151461847f8eSopenharmony_ci    /**
151561847f8eSopenharmony_ci     * Location of the main subject, relative to the left edge.
151661847f8eSopenharmony_ci     *
151761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
151861847f8eSopenharmony_ci     * @crossplatform
151961847f8eSopenharmony_ci     * @since 12
152061847f8eSopenharmony_ci     */
152161847f8eSopenharmony_ci    SUBJECT_LOCATION = 'SubjectLocation',
152261847f8eSopenharmony_ci
152361847f8eSopenharmony_ci    /**
152461847f8eSopenharmony_ci     * Selected exposure index at capture.
152561847f8eSopenharmony_ci     *
152661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
152761847f8eSopenharmony_ci     * @crossplatform
152861847f8eSopenharmony_ci     * @since 12
152961847f8eSopenharmony_ci     */
153061847f8eSopenharmony_ci    EXPOSURE_INDEX = 'ExposureIndex',
153161847f8eSopenharmony_ci
153261847f8eSopenharmony_ci    /**
153361847f8eSopenharmony_ci     * Image sensor type on the camera.
153461847f8eSopenharmony_ci     *
153561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
153661847f8eSopenharmony_ci     * @crossplatform
153761847f8eSopenharmony_ci     * @since 12
153861847f8eSopenharmony_ci     */
153961847f8eSopenharmony_ci    SENSING_METHOD = 'SensingMethod',
154061847f8eSopenharmony_ci
154161847f8eSopenharmony_ci    /**
154261847f8eSopenharmony_ci     * Indicates the image source.
154361847f8eSopenharmony_ci     *
154461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
154561847f8eSopenharmony_ci     * @crossplatform
154661847f8eSopenharmony_ci     * @since 12
154761847f8eSopenharmony_ci     */
154861847f8eSopenharmony_ci    FILE_SOURCE = 'FileSource',
154961847f8eSopenharmony_ci
155061847f8eSopenharmony_ci    /**
155161847f8eSopenharmony_ci     * Color filter array (CFA) geometric pattern of the image sensor.
155261847f8eSopenharmony_ci     *
155361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
155461847f8eSopenharmony_ci     * @crossplatform
155561847f8eSopenharmony_ci     * @since 12
155661847f8eSopenharmony_ci     */
155761847f8eSopenharmony_ci    CFA_PATTERN = 'CFAPattern',
155861847f8eSopenharmony_ci
155961847f8eSopenharmony_ci    /**
156061847f8eSopenharmony_ci     * Indicates special processing on image data.
156161847f8eSopenharmony_ci     *
156261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
156361847f8eSopenharmony_ci     * @crossplatform
156461847f8eSopenharmony_ci     * @since 12
156561847f8eSopenharmony_ci     */
156661847f8eSopenharmony_ci    CUSTOM_RENDERED = 'CustomRendered',
156761847f8eSopenharmony_ci
156861847f8eSopenharmony_ci    /**
156961847f8eSopenharmony_ci     * Exposure mode set when the image was shot.
157061847f8eSopenharmony_ci     *
157161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
157261847f8eSopenharmony_ci     * @crossplatform
157361847f8eSopenharmony_ci     * @since 12
157461847f8eSopenharmony_ci     */
157561847f8eSopenharmony_ci    EXPOSURE_MODE = 'ExposureMode',
157661847f8eSopenharmony_ci
157761847f8eSopenharmony_ci    /**
157861847f8eSopenharmony_ci     * Digital zoom ratio at the time of capture.
157961847f8eSopenharmony_ci     *
158061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
158161847f8eSopenharmony_ci     * @crossplatform
158261847f8eSopenharmony_ci     * @since 12
158361847f8eSopenharmony_ci     */
158461847f8eSopenharmony_ci    DIGITAL_ZOOM_RATIO = 'DigitalZoomRatio',
158561847f8eSopenharmony_ci
158661847f8eSopenharmony_ci    /**
158761847f8eSopenharmony_ci     * Type of scene captured.
158861847f8eSopenharmony_ci     *
158961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
159061847f8eSopenharmony_ci     * @crossplatform
159161847f8eSopenharmony_ci     * @since 12
159261847f8eSopenharmony_ci     */
159361847f8eSopenharmony_ci    SCENE_CAPTURE_TYPE = 'SceneCaptureType',
159461847f8eSopenharmony_ci
159561847f8eSopenharmony_ci    /**
159661847f8eSopenharmony_ci     * Degree of overall image gain adjustment.
159761847f8eSopenharmony_ci     *
159861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
159961847f8eSopenharmony_ci     * @crossplatform
160061847f8eSopenharmony_ci     * @since 12
160161847f8eSopenharmony_ci     */
160261847f8eSopenharmony_ci    GAIN_CONTROL = 'GainControl',
160361847f8eSopenharmony_ci
160461847f8eSopenharmony_ci    /**
160561847f8eSopenharmony_ci     * Direction of contrast processing applied by the camera.
160661847f8eSopenharmony_ci     *
160761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
160861847f8eSopenharmony_ci     * @crossplatform
160961847f8eSopenharmony_ci     * @since 12
161061847f8eSopenharmony_ci     */
161161847f8eSopenharmony_ci    CONTRAST = 'Contrast',
161261847f8eSopenharmony_ci
161361847f8eSopenharmony_ci    /**
161461847f8eSopenharmony_ci     * Direction of saturation processing applied by the camera.
161561847f8eSopenharmony_ci     *
161661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
161761847f8eSopenharmony_ci     * @crossplatform
161861847f8eSopenharmony_ci     * @since 12
161961847f8eSopenharmony_ci     */
162061847f8eSopenharmony_ci    SATURATION = 'Saturation',
162161847f8eSopenharmony_ci
162261847f8eSopenharmony_ci    /**
162361847f8eSopenharmony_ci     * The direction of sharpness processing applied by the camera.
162461847f8eSopenharmony_ci     *
162561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
162661847f8eSopenharmony_ci     * @crossplatform
162761847f8eSopenharmony_ci     * @since 12
162861847f8eSopenharmony_ci     */
162961847f8eSopenharmony_ci    SHARPNESS = 'Sharpness',
163061847f8eSopenharmony_ci
163161847f8eSopenharmony_ci    /**
163261847f8eSopenharmony_ci     * Information on picture-taking conditions for a specific camera model.
163361847f8eSopenharmony_ci     *
163461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
163561847f8eSopenharmony_ci     * @crossplatform
163661847f8eSopenharmony_ci     * @since 12
163761847f8eSopenharmony_ci     */
163861847f8eSopenharmony_ci    DEVICE_SETTING_DESCRIPTION = 'DeviceSettingDescription',
163961847f8eSopenharmony_ci
164061847f8eSopenharmony_ci    /**
164161847f8eSopenharmony_ci     * Indicates the distance range to the subject.
164261847f8eSopenharmony_ci     *
164361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
164461847f8eSopenharmony_ci     * @crossplatform
164561847f8eSopenharmony_ci     * @since 12
164661847f8eSopenharmony_ci     */
164761847f8eSopenharmony_ci    SUBJECT_DISTANCE_RANGE = 'SubjectDistanceRange',
164861847f8eSopenharmony_ci
164961847f8eSopenharmony_ci    /**
165061847f8eSopenharmony_ci     * An identifier uniquely assigned to each image.
165161847f8eSopenharmony_ci     *
165261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
165361847f8eSopenharmony_ci     * @crossplatform
165461847f8eSopenharmony_ci     * @since 12
165561847f8eSopenharmony_ci     */
165661847f8eSopenharmony_ci    IMAGE_UNIQUE_ID = 'ImageUniqueID',
165761847f8eSopenharmony_ci
165861847f8eSopenharmony_ci    /**
165961847f8eSopenharmony_ci     * The version of the GPSInfoIFD.
166061847f8eSopenharmony_ci     *
166161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
166261847f8eSopenharmony_ci     * @crossplatform
166361847f8eSopenharmony_ci     * @since 12
166461847f8eSopenharmony_ci     */
166561847f8eSopenharmony_ci    GPS_VERSION_ID = 'GPSVersionID',
166661847f8eSopenharmony_ci
166761847f8eSopenharmony_ci    /**
166861847f8eSopenharmony_ci     * Reference altitude used for GPS altitude.
166961847f8eSopenharmony_ci     *
167061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
167161847f8eSopenharmony_ci     * @crossplatform
167261847f8eSopenharmony_ci     * @since 12
167361847f8eSopenharmony_ci     */
167461847f8eSopenharmony_ci    GPS_ALTITUDE_REF = 'GPSAltitudeRef',
167561847f8eSopenharmony_ci
167661847f8eSopenharmony_ci    /**
167761847f8eSopenharmony_ci     * The altitude based on the reference in GPSAltitudeRef.
167861847f8eSopenharmony_ci     *
167961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
168061847f8eSopenharmony_ci     * @crossplatform
168161847f8eSopenharmony_ci     * @since 12
168261847f8eSopenharmony_ci     */
168361847f8eSopenharmony_ci    GPS_ALTITUDE = 'GPSAltitude',
168461847f8eSopenharmony_ci
168561847f8eSopenharmony_ci    /**
168661847f8eSopenharmony_ci     * The GPS satellites used for measurements.
168761847f8eSopenharmony_ci     *
168861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
168961847f8eSopenharmony_ci     * @crossplatform
169061847f8eSopenharmony_ci     * @since 12
169161847f8eSopenharmony_ci     */
169261847f8eSopenharmony_ci    GPS_SATELLITES = 'GPSSatellites',
169361847f8eSopenharmony_ci
169461847f8eSopenharmony_ci    /**
169561847f8eSopenharmony_ci     * The status of the GPS receiver when the image is recorded.
169661847f8eSopenharmony_ci     *
169761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
169861847f8eSopenharmony_ci     * @crossplatform
169961847f8eSopenharmony_ci     * @since 12
170061847f8eSopenharmony_ci     */
170161847f8eSopenharmony_ci    GPS_STATUS = 'GPSStatus',
170261847f8eSopenharmony_ci
170361847f8eSopenharmony_ci    /**
170461847f8eSopenharmony_ci     * The GPS measurement mode.
170561847f8eSopenharmony_ci     *
170661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
170761847f8eSopenharmony_ci     * @crossplatform
170861847f8eSopenharmony_ci     * @since 12
170961847f8eSopenharmony_ci     */
171061847f8eSopenharmony_ci    GPS_MEASURE_MODE = 'GPSMeasureMode',
171161847f8eSopenharmony_ci
171261847f8eSopenharmony_ci    /**
171361847f8eSopenharmony_ci     * The GPS DOP (data degree of precision).
171461847f8eSopenharmony_ci     *
171561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
171661847f8eSopenharmony_ci     * @crossplatform
171761847f8eSopenharmony_ci     * @since 12
171861847f8eSopenharmony_ci     */
171961847f8eSopenharmony_ci    GPS_DOP = 'GPSDOP',
172061847f8eSopenharmony_ci
172161847f8eSopenharmony_ci    /**
172261847f8eSopenharmony_ci     * The unit used to express the GPS receiver speed of movement.
172361847f8eSopenharmony_ci     *
172461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
172561847f8eSopenharmony_ci     * @crossplatform
172661847f8eSopenharmony_ci     * @since 12
172761847f8eSopenharmony_ci     */
172861847f8eSopenharmony_ci    GPS_SPEED_REF = 'GPSSpeedRef',
172961847f8eSopenharmony_ci
173061847f8eSopenharmony_ci    /**
173161847f8eSopenharmony_ci     * The speed of GPS receiver movement.
173261847f8eSopenharmony_ci     *
173361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
173461847f8eSopenharmony_ci     * @crossplatform
173561847f8eSopenharmony_ci     * @since 12
173661847f8eSopenharmony_ci     */
173761847f8eSopenharmony_ci    GPS_SPEED = 'GPSSpeed',
173861847f8eSopenharmony_ci
173961847f8eSopenharmony_ci    /**
174061847f8eSopenharmony_ci     * The reference for giving the direction of GPS receiver movement.
174161847f8eSopenharmony_ci     *
174261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
174361847f8eSopenharmony_ci     * @crossplatform
174461847f8eSopenharmony_ci     * @since 12
174561847f8eSopenharmony_ci     */
174661847f8eSopenharmony_ci    GPS_TRACK_REF = 'GPSTrackRef',
174761847f8eSopenharmony_ci
174861847f8eSopenharmony_ci    /**
174961847f8eSopenharmony_ci     * The direction of GPS receiver movement.
175061847f8eSopenharmony_ci     *
175161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
175261847f8eSopenharmony_ci     * @crossplatform
175361847f8eSopenharmony_ci     * @since 12
175461847f8eSopenharmony_ci     */
175561847f8eSopenharmony_ci    GPS_TRACK = 'GPSTrack',
175661847f8eSopenharmony_ci
175761847f8eSopenharmony_ci    /**
175861847f8eSopenharmony_ci     * The reference for the image's direction.
175961847f8eSopenharmony_ci     *
176061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
176161847f8eSopenharmony_ci     * @crossplatform
176261847f8eSopenharmony_ci     * @since 12
176361847f8eSopenharmony_ci     */
176461847f8eSopenharmony_ci    GPS_IMG_DIRECTION_REF = 'GPSImgDirectionRef',
176561847f8eSopenharmony_ci
176661847f8eSopenharmony_ci    /**
176761847f8eSopenharmony_ci     * The direction of the image when captured.
176861847f8eSopenharmony_ci     *
176961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
177061847f8eSopenharmony_ci     * @crossplatform
177161847f8eSopenharmony_ci     * @since 12
177261847f8eSopenharmony_ci     */
177361847f8eSopenharmony_ci    GPS_IMG_DIRECTION = 'GPSImgDirection',
177461847f8eSopenharmony_ci
177561847f8eSopenharmony_ci    /**
177661847f8eSopenharmony_ci     * Geodetic survey data used by the GPS receiver.
177761847f8eSopenharmony_ci     *
177861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
177961847f8eSopenharmony_ci     * @crossplatform
178061847f8eSopenharmony_ci     * @since 12
178161847f8eSopenharmony_ci     */
178261847f8eSopenharmony_ci    GPS_MAP_DATUM = 'GPSMapDatum',
178361847f8eSopenharmony_ci
178461847f8eSopenharmony_ci    /**
178561847f8eSopenharmony_ci     * Indicates the latitude reference of the destination point.
178661847f8eSopenharmony_ci     *
178761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
178861847f8eSopenharmony_ci     * @crossplatform
178961847f8eSopenharmony_ci     * @since 12
179061847f8eSopenharmony_ci     */
179161847f8eSopenharmony_ci    GPS_DEST_LATITUDE_REF = 'GPSDestLatitudeRef',
179261847f8eSopenharmony_ci
179361847f8eSopenharmony_ci    /**
179461847f8eSopenharmony_ci     * The latitude of the destination point.
179561847f8eSopenharmony_ci     *
179661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
179761847f8eSopenharmony_ci     * @crossplatform
179861847f8eSopenharmony_ci     * @since 12
179961847f8eSopenharmony_ci     */
180061847f8eSopenharmony_ci    GPS_DEST_LATITUDE = 'GPSDestLatitude',
180161847f8eSopenharmony_ci
180261847f8eSopenharmony_ci    /**
180361847f8eSopenharmony_ci     * Indicates the longitude reference of the destination point.
180461847f8eSopenharmony_ci     *
180561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
180661847f8eSopenharmony_ci     * @crossplatform
180761847f8eSopenharmony_ci     * @since 12
180861847f8eSopenharmony_ci     */
180961847f8eSopenharmony_ci    GPS_DEST_LONGITUDE_REF = 'GPSDestLongitudeRef',
181061847f8eSopenharmony_ci
181161847f8eSopenharmony_ci    /**
181261847f8eSopenharmony_ci     * The longitude of the destination point.
181361847f8eSopenharmony_ci     *
181461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
181561847f8eSopenharmony_ci     * @crossplatform
181661847f8eSopenharmony_ci     * @since 12
181761847f8eSopenharmony_ci     */
181861847f8eSopenharmony_ci    GPS_DEST_LONGITUDE = 'GPSDestLongitude',
181961847f8eSopenharmony_ci
182061847f8eSopenharmony_ci    /**
182161847f8eSopenharmony_ci     * The reference for the bearing to the destination point.
182261847f8eSopenharmony_ci     *
182361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
182461847f8eSopenharmony_ci     * @crossplatform
182561847f8eSopenharmony_ci     * @since 12
182661847f8eSopenharmony_ci     */
182761847f8eSopenharmony_ci    GPS_DEST_BEARING_REF = 'GPSDestBearingRef',
182861847f8eSopenharmony_ci
182961847f8eSopenharmony_ci    /**
183061847f8eSopenharmony_ci     * The bearing to the destination point.
183161847f8eSopenharmony_ci     *
183261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
183361847f8eSopenharmony_ci     * @crossplatform
183461847f8eSopenharmony_ci     * @since 12
183561847f8eSopenharmony_ci     */
183661847f8eSopenharmony_ci    GPS_DEST_BEARING = 'GPSDestBearing',
183761847f8eSopenharmony_ci
183861847f8eSopenharmony_ci    /**
183961847f8eSopenharmony_ci     * The measurement unit for the distance to the target point.
184061847f8eSopenharmony_ci     *
184161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
184261847f8eSopenharmony_ci     * @crossplatform
184361847f8eSopenharmony_ci     * @since 12
184461847f8eSopenharmony_ci     */
184561847f8eSopenharmony_ci    GPS_DEST_DISTANCE_REF = 'GPSDestDistanceRef',
184661847f8eSopenharmony_ci
184761847f8eSopenharmony_ci    /**
184861847f8eSopenharmony_ci     * The distance to the destination point.
184961847f8eSopenharmony_ci     *
185061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
185161847f8eSopenharmony_ci     * @crossplatform
185261847f8eSopenharmony_ci     * @since 12
185361847f8eSopenharmony_ci     */
185461847f8eSopenharmony_ci    GPS_DEST_DISTANCE = 'GPSDestDistance',
185561847f8eSopenharmony_ci
185661847f8eSopenharmony_ci    /**
185761847f8eSopenharmony_ci     * A character string recording the name of the method used for location finding.
185861847f8eSopenharmony_ci     *
185961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
186061847f8eSopenharmony_ci     * @crossplatform
186161847f8eSopenharmony_ci     * @since 12
186261847f8eSopenharmony_ci     */
186361847f8eSopenharmony_ci    GPS_PROCESSING_METHOD = 'GPSProcessingMethod',
186461847f8eSopenharmony_ci
186561847f8eSopenharmony_ci    /**
186661847f8eSopenharmony_ci     * A character string recording the name of the GPS area.
186761847f8eSopenharmony_ci     *
186861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
186961847f8eSopenharmony_ci     * @crossplatform
187061847f8eSopenharmony_ci     * @since 12
187161847f8eSopenharmony_ci     */
187261847f8eSopenharmony_ci    GPS_AREA_INFORMATION = 'GPSAreaInformation',
187361847f8eSopenharmony_ci
187461847f8eSopenharmony_ci    /**
187561847f8eSopenharmony_ci     * This field denotes if differential correction was applied to GPS data, crucial for precise location accuracy.
187661847f8eSopenharmony_ci     *
187761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
187861847f8eSopenharmony_ci     * @crossplatform
187961847f8eSopenharmony_ci     * @since 12
188061847f8eSopenharmony_ci     */
188161847f8eSopenharmony_ci    GPS_DIFFERENTIAL = 'GPSDifferential',
188261847f8eSopenharmony_ci
188361847f8eSopenharmony_ci    /**
188461847f8eSopenharmony_ci     * The serial number of the camera body.
188561847f8eSopenharmony_ci     *
188661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
188761847f8eSopenharmony_ci     * @crossplatform
188861847f8eSopenharmony_ci     * @since 12
188961847f8eSopenharmony_ci     */
189061847f8eSopenharmony_ci    BODY_SERIAL_NUMBER = 'BodySerialNumber',
189161847f8eSopenharmony_ci
189261847f8eSopenharmony_ci    /**
189361847f8eSopenharmony_ci     * The name of the camera owner.
189461847f8eSopenharmony_ci     *
189561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
189661847f8eSopenharmony_ci     * @crossplatform
189761847f8eSopenharmony_ci     * @since 12
189861847f8eSopenharmony_ci     */
189961847f8eSopenharmony_ci    CAMERA_OWNER_NAME = 'CameraOwnerName',
190061847f8eSopenharmony_ci
190161847f8eSopenharmony_ci    /**
190261847f8eSopenharmony_ci     * Indicates whether the image is a composite image.
190361847f8eSopenharmony_ci     *
190461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
190561847f8eSopenharmony_ci     * @crossplatform
190661847f8eSopenharmony_ci     * @since 12
190761847f8eSopenharmony_ci     */
190861847f8eSopenharmony_ci    COMPOSITE_IMAGE = 'CompositeImage',
190961847f8eSopenharmony_ci
191061847f8eSopenharmony_ci    /**
191161847f8eSopenharmony_ci     * The compression mode used for a compressed image, in unit bits per pixel.
191261847f8eSopenharmony_ci     *
191361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
191461847f8eSopenharmony_ci     * @crossplatform
191561847f8eSopenharmony_ci     * @since 12
191661847f8eSopenharmony_ci     */
191761847f8eSopenharmony_ci    COMPRESSED_BITS_PER_PIXEL = 'CompressedBitsPerPixel',
191861847f8eSopenharmony_ci
191961847f8eSopenharmony_ci    /**
192061847f8eSopenharmony_ci     * The DNGVersion tag encodes the four-tier version number for DNG specification compliance.
192161847f8eSopenharmony_ci     *
192261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
192361847f8eSopenharmony_ci     * @crossplatform
192461847f8eSopenharmony_ci     * @since 12
192561847f8eSopenharmony_ci     */
192661847f8eSopenharmony_ci    DNG_VERSION = 'DNGVersion',
192761847f8eSopenharmony_ci
192861847f8eSopenharmony_ci    /**
192961847f8eSopenharmony_ci     * DefaultCropSize specifies the final image size in raw coordinates, accounting for extra edge pixels.
193061847f8eSopenharmony_ci     *
193161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
193261847f8eSopenharmony_ci     * @crossplatform
193361847f8eSopenharmony_ci     * @since 12
193461847f8eSopenharmony_ci     */
193561847f8eSopenharmony_ci    DEFAULT_CROP_SIZE = 'DefaultCropSize',
193661847f8eSopenharmony_ci
193761847f8eSopenharmony_ci    /**
193861847f8eSopenharmony_ci     * Indicates the value of coefficient gamma.
193961847f8eSopenharmony_ci     *
194061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
194161847f8eSopenharmony_ci     * @crossplatform
194261847f8eSopenharmony_ci     * @since 12
194361847f8eSopenharmony_ci     */
194461847f8eSopenharmony_ci    GAMMA = 'Gamma',
194561847f8eSopenharmony_ci
194661847f8eSopenharmony_ci    /**
194761847f8eSopenharmony_ci     * The tag indicate the ISO speed latitude yyy value of the camera or input device that is defined in ISO 12232.
194861847f8eSopenharmony_ci     *
194961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
195061847f8eSopenharmony_ci     * @crossplatform
195161847f8eSopenharmony_ci     * @since 12
195261847f8eSopenharmony_ci     */
195361847f8eSopenharmony_ci    ISO_SPEED_LATITUDE_YYY = 'ISOSpeedLatitudeyyy',
195461847f8eSopenharmony_ci
195561847f8eSopenharmony_ci    /**
195661847f8eSopenharmony_ci     * The tag indicate the ISO speed latitude zzz value of the camera or input device that is defined in ISO 12232.
195761847f8eSopenharmony_ci     *
195861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
195961847f8eSopenharmony_ci     * @crossplatform
196061847f8eSopenharmony_ci     * @since 12
196161847f8eSopenharmony_ci     */
196261847f8eSopenharmony_ci    ISO_SPEED_LATITUDE_ZZZ = 'ISOSpeedLatitudezzz',
196361847f8eSopenharmony_ci
196461847f8eSopenharmony_ci    /**
196561847f8eSopenharmony_ci     * The manufacturer of the lens.
196661847f8eSopenharmony_ci     *
196761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
196861847f8eSopenharmony_ci     * @crossplatform
196961847f8eSopenharmony_ci     * @since 12
197061847f8eSopenharmony_ci     */
197161847f8eSopenharmony_ci    LENS_MAKE = 'LensMake',
197261847f8eSopenharmony_ci
197361847f8eSopenharmony_ci    /**
197461847f8eSopenharmony_ci     * The model name of the lens.
197561847f8eSopenharmony_ci     *
197661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
197761847f8eSopenharmony_ci     * @crossplatform
197861847f8eSopenharmony_ci     * @since 12
197961847f8eSopenharmony_ci     */
198061847f8eSopenharmony_ci    LENS_MODEL = 'LensModel',
198161847f8eSopenharmony_ci
198261847f8eSopenharmony_ci    /**
198361847f8eSopenharmony_ci     * The serial number of the lens.
198461847f8eSopenharmony_ci     *
198561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
198661847f8eSopenharmony_ci     * @crossplatform
198761847f8eSopenharmony_ci     * @since 12
198861847f8eSopenharmony_ci     */
198961847f8eSopenharmony_ci    LENS_SERIAL_NUMBER = 'LensSerialNumber',
199061847f8eSopenharmony_ci
199161847f8eSopenharmony_ci    /**
199261847f8eSopenharmony_ci     * Specifications of the lens used.
199361847f8eSopenharmony_ci     *
199461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
199561847f8eSopenharmony_ci     * @crossplatform
199661847f8eSopenharmony_ci     * @since 12
199761847f8eSopenharmony_ci     */
199861847f8eSopenharmony_ci    LENS_SPECIFICATION = 'LensSpecification',
199961847f8eSopenharmony_ci
200061847f8eSopenharmony_ci    /**
200161847f8eSopenharmony_ci     * This tag provides a broad description of the data type in this subfile.
200261847f8eSopenharmony_ci     *
200361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
200461847f8eSopenharmony_ci     * @crossplatform
200561847f8eSopenharmony_ci     * @since 12
200661847f8eSopenharmony_ci     */
200761847f8eSopenharmony_ci    NEW_SUBFILE_TYPE = 'NewSubfileType',
200861847f8eSopenharmony_ci
200961847f8eSopenharmony_ci    /**
201061847f8eSopenharmony_ci     * This tag records the UTC offset for the DateTime tag, ensuring accurate timestamps regardless of location.
201161847f8eSopenharmony_ci     *
201261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
201361847f8eSopenharmony_ci     * @crossplatform
201461847f8eSopenharmony_ci     * @since 12
201561847f8eSopenharmony_ci     */
201661847f8eSopenharmony_ci    OFFSET_TIME = 'OffsetTime',
201761847f8eSopenharmony_ci
201861847f8eSopenharmony_ci    /**
201961847f8eSopenharmony_ci     * This tag records the UTC offset when the image was digitized, aiding in accurate timestamp adjustment.
202061847f8eSopenharmony_ci     *
202161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
202261847f8eSopenharmony_ci     * @crossplatform
202361847f8eSopenharmony_ci     * @since 12
202461847f8eSopenharmony_ci     */
202561847f8eSopenharmony_ci    OFFSET_TIME_DIGITIZED = 'OffsetTimeDigitized',
202661847f8eSopenharmony_ci
202761847f8eSopenharmony_ci    /**
202861847f8eSopenharmony_ci     * This tag records the UTC offset when the original image was created, crucial for time-sensitive applications.
202961847f8eSopenharmony_ci     *
203061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
203161847f8eSopenharmony_ci     * @crossplatform
203261847f8eSopenharmony_ci     * @since 12
203361847f8eSopenharmony_ci     */
203461847f8eSopenharmony_ci    OFFSET_TIME_ORIGINAL = 'OffsetTimeOriginal',
203561847f8eSopenharmony_ci
203661847f8eSopenharmony_ci    /**
203761847f8eSopenharmony_ci     * Exposure times of source images for a composite image.
203861847f8eSopenharmony_ci     *
203961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
204061847f8eSopenharmony_ci     * @crossplatform
204161847f8eSopenharmony_ci     * @since 12
204261847f8eSopenharmony_ci     */
204361847f8eSopenharmony_ci    SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = 'SourceExposureTimesOfCompositeImage',
204461847f8eSopenharmony_ci
204561847f8eSopenharmony_ci    /**
204661847f8eSopenharmony_ci     * The number of source images used for a composite image.
204761847f8eSopenharmony_ci     *
204861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
204961847f8eSopenharmony_ci     * @crossplatform
205061847f8eSopenharmony_ci     * @since 12
205161847f8eSopenharmony_ci     */
205261847f8eSopenharmony_ci    SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = 'SourceImageNumberOfCompositeImage',
205361847f8eSopenharmony_ci
205461847f8eSopenharmony_ci    /**
205561847f8eSopenharmony_ci     * This deprecated tag indicates the data type in this subfile. Use NewSubfileType instead.
205661847f8eSopenharmony_ci     *
205761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
205861847f8eSopenharmony_ci     * @crossplatform
205961847f8eSopenharmony_ci     * @since 12
206061847f8eSopenharmony_ci     */
206161847f8eSopenharmony_ci    SUBFILE_TYPE = 'SubfileType',
206261847f8eSopenharmony_ci
206361847f8eSopenharmony_ci    /**
206461847f8eSopenharmony_ci     * This tag indicates horizontal positioning errors in meters.
206561847f8eSopenharmony_ci     *
206661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
206761847f8eSopenharmony_ci     * @crossplatform
206861847f8eSopenharmony_ci     * @since 12
206961847f8eSopenharmony_ci     */
207061847f8eSopenharmony_ci    GPS_H_POSITIONING_ERROR = 'GPSHPositioningError',
207161847f8eSopenharmony_ci
207261847f8eSopenharmony_ci    /**
207361847f8eSopenharmony_ci     * This tag indicates the sensitivity of the camera or input device when the image was shot.
207461847f8eSopenharmony_ci     *
207561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
207661847f8eSopenharmony_ci     * @crossplatform
207761847f8eSopenharmony_ci     * @since 12
207861847f8eSopenharmony_ci     */
207961847f8eSopenharmony_ci    PHOTOGRAPHIC_SENSITIVITY = 'PhotographicSensitivity',
208061847f8eSopenharmony_ci
208161847f8eSopenharmony_ci    /**
208261847f8eSopenharmony_ci     * Burst Number
208361847f8eSopenharmony_ci     *
208461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
208561847f8eSopenharmony_ci     * @crossplatform
208661847f8eSopenharmony_ci     * @since 12
208761847f8eSopenharmony_ci     */
208861847f8eSopenharmony_ci    BURST_NUMBER = 'HwMnoteBurstNumber',
208961847f8eSopenharmony_ci
209061847f8eSopenharmony_ci    /**
209161847f8eSopenharmony_ci     * Face Conf
209261847f8eSopenharmony_ci     *
209361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
209461847f8eSopenharmony_ci     * @crossplatform
209561847f8eSopenharmony_ci     * @since 12
209661847f8eSopenharmony_ci     */
209761847f8eSopenharmony_ci    FACE_CONF = 'HwMnoteFaceConf',
209861847f8eSopenharmony_ci
209961847f8eSopenharmony_ci    /**
210061847f8eSopenharmony_ci     * Face Leye Center
210161847f8eSopenharmony_ci     *
210261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
210361847f8eSopenharmony_ci     * @crossplatform
210461847f8eSopenharmony_ci     * @since 12
210561847f8eSopenharmony_ci     */
210661847f8eSopenharmony_ci    FACE_LEYE_CENTER = 'HwMnoteFaceLeyeCenter',
210761847f8eSopenharmony_ci
210861847f8eSopenharmony_ci    /**
210961847f8eSopenharmony_ci     * Face Mouth Center
211061847f8eSopenharmony_ci     *
211161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
211261847f8eSopenharmony_ci     * @crossplatform
211361847f8eSopenharmony_ci     * @since 12
211461847f8eSopenharmony_ci     */
211561847f8eSopenharmony_ci    FACE_MOUTH_CENTER = 'HwMnoteFaceMouthCenter',
211661847f8eSopenharmony_ci
211761847f8eSopenharmony_ci    /**
211861847f8eSopenharmony_ci     * Face Pointer
211961847f8eSopenharmony_ci     *
212061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
212161847f8eSopenharmony_ci     * @crossplatform
212261847f8eSopenharmony_ci     * @since 12
212361847f8eSopenharmony_ci     */
212461847f8eSopenharmony_ci    FACE_POINTER = 'HwMnoteFacePointer',
212561847f8eSopenharmony_ci
212661847f8eSopenharmony_ci    /**
212761847f8eSopenharmony_ci     * Face Rect
212861847f8eSopenharmony_ci     *
212961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
213061847f8eSopenharmony_ci     * @crossplatform
213161847f8eSopenharmony_ci     * @since 12
213261847f8eSopenharmony_ci     */
213361847f8eSopenharmony_ci    FACE_RECT = 'HwMnoteFaceRect',
213461847f8eSopenharmony_ci
213561847f8eSopenharmony_ci    /**
213661847f8eSopenharmony_ci     * Face Reye Center
213761847f8eSopenharmony_ci     *
213861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
213961847f8eSopenharmony_ci     * @crossplatform
214061847f8eSopenharmony_ci     * @since 12
214161847f8eSopenharmony_ci     */
214261847f8eSopenharmony_ci    FACE_REYE_CENTER = 'HwMnoteFaceReyeCenter',
214361847f8eSopenharmony_ci
214461847f8eSopenharmony_ci    /**
214561847f8eSopenharmony_ci     * Face Smile Score
214661847f8eSopenharmony_ci     *
214761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
214861847f8eSopenharmony_ci     * @crossplatform
214961847f8eSopenharmony_ci     * @since 12
215061847f8eSopenharmony_ci     */
215161847f8eSopenharmony_ci    FACE_SMILE_SCORE = 'HwMnoteFaceSmileScore',
215261847f8eSopenharmony_ci
215361847f8eSopenharmony_ci    /**
215461847f8eSopenharmony_ci     * Face Version
215561847f8eSopenharmony_ci     *
215661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
215761847f8eSopenharmony_ci     * @crossplatform
215861847f8eSopenharmony_ci     * @since 12
215961847f8eSopenharmony_ci     */
216061847f8eSopenharmony_ci    FACE_VERSION = 'HwMnoteFaceVersion',
216161847f8eSopenharmony_ci
216261847f8eSopenharmony_ci    /**
216361847f8eSopenharmony_ci     * Front Camera
216461847f8eSopenharmony_ci     *
216561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
216661847f8eSopenharmony_ci     * @crossplatform
216761847f8eSopenharmony_ci     * @since 12
216861847f8eSopenharmony_ci     */
216961847f8eSopenharmony_ci    FRONT_CAMERA = 'HwMnoteFrontCamera',
217061847f8eSopenharmony_ci
217161847f8eSopenharmony_ci    /**
217261847f8eSopenharmony_ci     * Scene Pointer
217361847f8eSopenharmony_ci     *
217461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
217561847f8eSopenharmony_ci     * @crossplatform
217661847f8eSopenharmony_ci     * @since 12
217761847f8eSopenharmony_ci     */
217861847f8eSopenharmony_ci    SCENE_POINTER = 'HwMnoteScenePointer',
217961847f8eSopenharmony_ci
218061847f8eSopenharmony_ci    /**
218161847f8eSopenharmony_ci     * Scene Version
218261847f8eSopenharmony_ci     *
218361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
218461847f8eSopenharmony_ci     * @crossplatform
218561847f8eSopenharmony_ci     * @since 12
218661847f8eSopenharmony_ci     */
218761847f8eSopenharmony_ci    SCENE_VERSION = 'HwMnoteSceneVersion',
218861847f8eSopenharmony_ci
218961847f8eSopenharmony_ci    /**
219061847f8eSopenharmony_ci     * Is Xmage Supported
219161847f8eSopenharmony_ci     *
219261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
219361847f8eSopenharmony_ci     * @crossplatform
219461847f8eSopenharmony_ci     * @since 12
219561847f8eSopenharmony_ci     */
219661847f8eSopenharmony_ci    IS_XMAGE_SUPPORTED = 'HwMnoteIsXmageSupported',
219761847f8eSopenharmony_ci
219861847f8eSopenharmony_ci    /**
219961847f8eSopenharmony_ci     * Xmage Mode
220061847f8eSopenharmony_ci     *
220161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
220261847f8eSopenharmony_ci     * @crossplatform
220361847f8eSopenharmony_ci     * @since 12
220461847f8eSopenharmony_ci     */
220561847f8eSopenharmony_ci    XMAGE_MODE = 'HwMnoteXmageMode',
220661847f8eSopenharmony_ci
220761847f8eSopenharmony_ci    /**
220861847f8eSopenharmony_ci     * Xmage X1 Coordinate
220961847f8eSopenharmony_ci     *
221061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
221161847f8eSopenharmony_ci     * @crossplatform
221261847f8eSopenharmony_ci     * @since 12
221361847f8eSopenharmony_ci     */
221461847f8eSopenharmony_ci    XMAGE_LEFT = 'HwMnoteXmageLeft',
221561847f8eSopenharmony_ci
221661847f8eSopenharmony_ci    /**
221761847f8eSopenharmony_ci     * Xmage Y1 Coordinate
221861847f8eSopenharmony_ci     *
221961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
222061847f8eSopenharmony_ci     * @crossplatform
222161847f8eSopenharmony_ci     * @since 12
222261847f8eSopenharmony_ci     */
222361847f8eSopenharmony_ci    XMAGE_TOP = 'HwMnoteXmageTop',
222461847f8eSopenharmony_ci
222561847f8eSopenharmony_ci    /**
222661847f8eSopenharmony_ci     * Xmage X2 Coordinate
222761847f8eSopenharmony_ci     *
222861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
222961847f8eSopenharmony_ci     * @crossplatform
223061847f8eSopenharmony_ci     * @since 12
223161847f8eSopenharmony_ci     */
223261847f8eSopenharmony_ci    XMAGE_RIGHT = 'HwMnoteXmageRight',
223361847f8eSopenharmony_ci
223461847f8eSopenharmony_ci    /**
223561847f8eSopenharmony_ci     * Xmage Y2 Coordinate
223661847f8eSopenharmony_ci     *
223761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
223861847f8eSopenharmony_ci     * @crossplatform
223961847f8eSopenharmony_ci     * @since 12
224061847f8eSopenharmony_ci     */
224161847f8eSopenharmony_ci    XMAGE_BOTTOM = 'HwMnoteXmageBottom',
224261847f8eSopenharmony_ci
224361847f8eSopenharmony_ci    /**
224461847f8eSopenharmony_ci     * Cloud Enhancement Mode
224561847f8eSopenharmony_ci     *
224661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
224761847f8eSopenharmony_ci     * @crossplatform
224861847f8eSopenharmony_ci     * @since 12
224961847f8eSopenharmony_ci     */
225061847f8eSopenharmony_ci    CLOUD_ENHANCEMENT_MODE = 'HwMnoteCloudEnhancementMode',
225161847f8eSopenharmony_ci
225261847f8eSopenharmony_ci    /**
225361847f8eSopenharmony_ci     * Wind Snapshot Mode
225461847f8eSopenharmony_ci     *
225561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
225661847f8eSopenharmony_ci     * @crossplatform
225761847f8eSopenharmony_ci     * @since 12
225861847f8eSopenharmony_ci     */
225961847f8eSopenharmony_ci    WIND_SNAPSHOT_MODE = 'HwMnoteWindSnapshotMode',
226061847f8eSopenharmony_ci
226161847f8eSopenharmony_ci    /**
226261847f8eSopenharmony_ci     * GIF LOOP COUNT
226361847f8eSopenharmony_ci     * If infinite loop returns 0, other values represent the number of loops
226461847f8eSopenharmony_ci     *
226561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
226661847f8eSopenharmony_ci     * @crossplatform
226761847f8eSopenharmony_ci     * @since 12
226861847f8eSopenharmony_ci     */
226961847f8eSopenharmony_ci    GIF_LOOP_COUNT = 'GIFLoopCount'
227061847f8eSopenharmony_ci  }
227161847f8eSopenharmony_ci
227261847f8eSopenharmony_ci  /**
227361847f8eSopenharmony_ci   * Enum for image formats.
227461847f8eSopenharmony_ci   *
227561847f8eSopenharmony_ci   * @enum { number }
227661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
227761847f8eSopenharmony_ci   * @since 9
227861847f8eSopenharmony_ci   */
227961847f8eSopenharmony_ci  enum ImageFormat {
228061847f8eSopenharmony_ci    /**
228161847f8eSopenharmony_ci     * YCBCR422 semi-planar format.
228261847f8eSopenharmony_ci     *
228361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
228461847f8eSopenharmony_ci     * @since 9
228561847f8eSopenharmony_ci     */
228661847f8eSopenharmony_ci    YCBCR_422_SP = 1000,
228761847f8eSopenharmony_ci
228861847f8eSopenharmony_ci    /**
228961847f8eSopenharmony_ci     * JPEG encoding format.
229061847f8eSopenharmony_ci     *
229161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
229261847f8eSopenharmony_ci     * @since 9
229361847f8eSopenharmony_ci     */
229461847f8eSopenharmony_ci    JPEG = 2000
229561847f8eSopenharmony_ci  }
229661847f8eSopenharmony_ci
229761847f8eSopenharmony_ci  /**
229861847f8eSopenharmony_ci   * Enumerates alpha types.
229961847f8eSopenharmony_ci   *
230061847f8eSopenharmony_ci   * @enum { number }
230161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
230261847f8eSopenharmony_ci   * @since 9
230361847f8eSopenharmony_ci   */
230461847f8eSopenharmony_ci  /**
230561847f8eSopenharmony_ci   * Enumerates alpha types.
230661847f8eSopenharmony_ci   *
230761847f8eSopenharmony_ci   * @enum { number }
230861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
230961847f8eSopenharmony_ci   * @crossplatform
231061847f8eSopenharmony_ci   * @since 10
231161847f8eSopenharmony_ci   */
231261847f8eSopenharmony_ci  /**
231361847f8eSopenharmony_ci   * Enumerates alpha types.
231461847f8eSopenharmony_ci   *
231561847f8eSopenharmony_ci   * @enum { number }
231661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
231761847f8eSopenharmony_ci   * @crossplatform
231861847f8eSopenharmony_ci   * @atomicservice
231961847f8eSopenharmony_ci   * @since 11
232061847f8eSopenharmony_ci   */
232161847f8eSopenharmony_ci  /**
232261847f8eSopenharmony_ci   * Enumerates alpha types.
232361847f8eSopenharmony_ci   *
232461847f8eSopenharmony_ci   * @enum { number }
232561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
232661847f8eSopenharmony_ci   * @crossplatform
232761847f8eSopenharmony_ci   * @form
232861847f8eSopenharmony_ci   * @atomicservice
232961847f8eSopenharmony_ci   * @since 12
233061847f8eSopenharmony_ci   */
233161847f8eSopenharmony_ci  enum AlphaType {
233261847f8eSopenharmony_ci    /**
233361847f8eSopenharmony_ci     * Indicates an unknown alpha type.
233461847f8eSopenharmony_ci     *
233561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
233661847f8eSopenharmony_ci     * @since 9
233761847f8eSopenharmony_ci     */
233861847f8eSopenharmony_ci    /**
233961847f8eSopenharmony_ci     * Indicates an unknown alpha type.
234061847f8eSopenharmony_ci     *
234161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
234261847f8eSopenharmony_ci     * @crossplatform
234361847f8eSopenharmony_ci     * @since 10
234461847f8eSopenharmony_ci     */
234561847f8eSopenharmony_ci    /**
234661847f8eSopenharmony_ci     * Indicates an unknown alpha type.
234761847f8eSopenharmony_ci     *
234861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
234961847f8eSopenharmony_ci     * @crossplatform
235061847f8eSopenharmony_ci     * @atomicservice
235161847f8eSopenharmony_ci     * @since 11
235261847f8eSopenharmony_ci     */
235361847f8eSopenharmony_ci    /**
235461847f8eSopenharmony_ci     * Indicates an unknown alpha type.
235561847f8eSopenharmony_ci     *
235661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
235761847f8eSopenharmony_ci     * @crossplatform
235861847f8eSopenharmony_ci     * @form
235961847f8eSopenharmony_ci     * @atomicservice
236061847f8eSopenharmony_ci     * @since 12
236161847f8eSopenharmony_ci     */
236261847f8eSopenharmony_ci    UNKNOWN = 0,
236361847f8eSopenharmony_ci
236461847f8eSopenharmony_ci    /**
236561847f8eSopenharmony_ci     * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.
236661847f8eSopenharmony_ci     *
236761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
236861847f8eSopenharmony_ci     * @since 9
236961847f8eSopenharmony_ci     */
237061847f8eSopenharmony_ci    /**
237161847f8eSopenharmony_ci     * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.
237261847f8eSopenharmony_ci     *
237361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
237461847f8eSopenharmony_ci     * @crossplatform
237561847f8eSopenharmony_ci     * @since 10
237661847f8eSopenharmony_ci     */
237761847f8eSopenharmony_ci    /**
237861847f8eSopenharmony_ci     * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.
237961847f8eSopenharmony_ci     *
238061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
238161847f8eSopenharmony_ci     * @crossplatform
238261847f8eSopenharmony_ci     * @atomicservice
238361847f8eSopenharmony_ci     * @since 11
238461847f8eSopenharmony_ci     */
238561847f8eSopenharmony_ci    /**
238661847f8eSopenharmony_ci     * Indicates that the image has no alpha channel, or all pixels in the image are fully opaque.
238761847f8eSopenharmony_ci     *
238861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
238961847f8eSopenharmony_ci     * @crossplatform
239061847f8eSopenharmony_ci     * @form
239161847f8eSopenharmony_ci     * @atomicservice
239261847f8eSopenharmony_ci     * @since 12
239361847f8eSopenharmony_ci     */
239461847f8eSopenharmony_ci    OPAQUE = 1,
239561847f8eSopenharmony_ci
239661847f8eSopenharmony_ci    /**
239761847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are premultiplied by alpha.
239861847f8eSopenharmony_ci     *
239961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
240061847f8eSopenharmony_ci     * @since 9
240161847f8eSopenharmony_ci     */
240261847f8eSopenharmony_ci    /**
240361847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are premultiplied by alpha.
240461847f8eSopenharmony_ci     *
240561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
240661847f8eSopenharmony_ci     * @crossplatform
240761847f8eSopenharmony_ci     * @since 10
240861847f8eSopenharmony_ci     */
240961847f8eSopenharmony_ci    /**
241061847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are premultiplied by alpha.
241161847f8eSopenharmony_ci     *
241261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
241361847f8eSopenharmony_ci     * @crossplatform
241461847f8eSopenharmony_ci     * @atomicservice
241561847f8eSopenharmony_ci     * @since 11
241661847f8eSopenharmony_ci     */
241761847f8eSopenharmony_ci    /**
241861847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are premultiplied by alpha.
241961847f8eSopenharmony_ci     *
242061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
242161847f8eSopenharmony_ci     * @crossplatform
242261847f8eSopenharmony_ci     * @form
242361847f8eSopenharmony_ci     * @atomicservice
242461847f8eSopenharmony_ci     * @since 12
242561847f8eSopenharmony_ci     */
242661847f8eSopenharmony_ci    PREMUL = 2,
242761847f8eSopenharmony_ci
242861847f8eSopenharmony_ci    /**
242961847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.
243061847f8eSopenharmony_ci     *
243161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
243261847f8eSopenharmony_ci     * @since 9
243361847f8eSopenharmony_ci     */
243461847f8eSopenharmony_ci    /**
243561847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.
243661847f8eSopenharmony_ci     *
243761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
243861847f8eSopenharmony_ci     * @crossplatform
243961847f8eSopenharmony_ci     * @since 10
244061847f8eSopenharmony_ci     */
244161847f8eSopenharmony_ci    /**
244261847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.
244361847f8eSopenharmony_ci     *
244461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
244561847f8eSopenharmony_ci     * @crossplatform
244661847f8eSopenharmony_ci     * @atomicservice
244761847f8eSopenharmony_ci     * @since 11
244861847f8eSopenharmony_ci     */
244961847f8eSopenharmony_ci    /**
245061847f8eSopenharmony_ci     * Indicates that RGB components of each pixel in the image are independent of alpha and are not premultiplied by alpha.
245161847f8eSopenharmony_ci     *
245261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
245361847f8eSopenharmony_ci     * @crossplatform
245461847f8eSopenharmony_ci     * @form
245561847f8eSopenharmony_ci     * @atomicservice
245661847f8eSopenharmony_ci     * @since 12
245761847f8eSopenharmony_ci     */
245861847f8eSopenharmony_ci    UNPREMUL = 3
245961847f8eSopenharmony_ci  }
246061847f8eSopenharmony_ci
246161847f8eSopenharmony_ci  /**
246261847f8eSopenharmony_ci   * Enumerates decoding dynamic range.
246361847f8eSopenharmony_ci   *
246461847f8eSopenharmony_ci   * @enum { number }
246561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
246661847f8eSopenharmony_ci   * @since 12
246761847f8eSopenharmony_ci   */
246861847f8eSopenharmony_ci  enum DecodingDynamicRange {
246961847f8eSopenharmony_ci    /**
247061847f8eSopenharmony_ci     * Decoding according to the content of the image.
247161847f8eSopenharmony_ci     *
247261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
247361847f8eSopenharmony_ci     * @since 12
247461847f8eSopenharmony_ci     */
247561847f8eSopenharmony_ci    AUTO = 0,
247661847f8eSopenharmony_ci
247761847f8eSopenharmony_ci    /**
247861847f8eSopenharmony_ci     * Decoding to standard dynamic range.
247961847f8eSopenharmony_ci     *
248061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
248161847f8eSopenharmony_ci     * @since 12
248261847f8eSopenharmony_ci     */
248361847f8eSopenharmony_ci    SDR = 1,
248461847f8eSopenharmony_ci
248561847f8eSopenharmony_ci    /**
248661847f8eSopenharmony_ci     * Decoding to high dynamic range.
248761847f8eSopenharmony_ci     *
248861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
248961847f8eSopenharmony_ci     * @since 12
249061847f8eSopenharmony_ci     */
249161847f8eSopenharmony_ci    HDR = 2
249261847f8eSopenharmony_ci  }
249361847f8eSopenharmony_ci
249461847f8eSopenharmony_ci  /**
249561847f8eSopenharmony_ci   * Enumerates packing dynamic range.
249661847f8eSopenharmony_ci   *
249761847f8eSopenharmony_ci   * @enum { number }
249861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
249961847f8eSopenharmony_ci   * @since 12
250061847f8eSopenharmony_ci   */
250161847f8eSopenharmony_ci  enum PackingDynamicRange {
250261847f8eSopenharmony_ci    /**
250361847f8eSopenharmony_ci     * Packing according to the content of the image.
250461847f8eSopenharmony_ci     *
250561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
250661847f8eSopenharmony_ci     * @since 12
250761847f8eSopenharmony_ci     */
250861847f8eSopenharmony_ci    AUTO = 0,
250961847f8eSopenharmony_ci
251061847f8eSopenharmony_ci    /**
251161847f8eSopenharmony_ci     * Packing to standard dynamic range.
251261847f8eSopenharmony_ci     *
251361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
251461847f8eSopenharmony_ci     * @since 12
251561847f8eSopenharmony_ci     */
251661847f8eSopenharmony_ci    SDR = 1,
251761847f8eSopenharmony_ci  }
251861847f8eSopenharmony_ci
251961847f8eSopenharmony_ci  /**
252061847f8eSopenharmony_ci   * Enumerates the anti-aliasing level.
252161847f8eSopenharmony_ci   *
252261847f8eSopenharmony_ci   * @enum { number }
252361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
252461847f8eSopenharmony_ci   * @since 12
252561847f8eSopenharmony_ci   */
252661847f8eSopenharmony_ci  enum AntiAliasingLevel {
252761847f8eSopenharmony_ci    /**
252861847f8eSopenharmony_ci     * Nearest-neighbor interpolation algorithm.
252961847f8eSopenharmony_ci     *
253061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
253161847f8eSopenharmony_ci     * @since 12
253261847f8eSopenharmony_ci     */
253361847f8eSopenharmony_ci    NONE = 0,
253461847f8eSopenharmony_ci
253561847f8eSopenharmony_ci    /**
253661847f8eSopenharmony_ci     * Bilinear interpolation algorithm.
253761847f8eSopenharmony_ci     *
253861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
253961847f8eSopenharmony_ci     * @since 12
254061847f8eSopenharmony_ci     */
254161847f8eSopenharmony_ci    LOW = 1,
254261847f8eSopenharmony_ci
254361847f8eSopenharmony_ci    /**
254461847f8eSopenharmony_ci     * Bilinear interpolation algorithm with mipmap linear filtering.
254561847f8eSopenharmony_ci     *
254661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
254761847f8eSopenharmony_ci     * @since 12
254861847f8eSopenharmony_ci     */
254961847f8eSopenharmony_ci    MEDIUM = 2,
255061847f8eSopenharmony_ci
255161847f8eSopenharmony_ci    /**
255261847f8eSopenharmony_ci     * Cubic interpolation algorithm.
255361847f8eSopenharmony_ci     *
255461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
255561847f8eSopenharmony_ci     * @since 12
255661847f8eSopenharmony_ci     */
255761847f8eSopenharmony_ci    HIGH = 3,
255861847f8eSopenharmony_ci  }
255961847f8eSopenharmony_ci
256061847f8eSopenharmony_ci  /**
256161847f8eSopenharmony_ci   * Enum for image scale mode.
256261847f8eSopenharmony_ci   *
256361847f8eSopenharmony_ci   * @enum { number }
256461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
256561847f8eSopenharmony_ci   * @since 9
256661847f8eSopenharmony_ci   */
256761847f8eSopenharmony_ci  /**
256861847f8eSopenharmony_ci   * Enum for image scale mode.
256961847f8eSopenharmony_ci   *
257061847f8eSopenharmony_ci   * @enum { number }
257161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
257261847f8eSopenharmony_ci   * @crossplatform
257361847f8eSopenharmony_ci   * @since 10
257461847f8eSopenharmony_ci   */
257561847f8eSopenharmony_ci  /**
257661847f8eSopenharmony_ci   * Enum for image scale mode.
257761847f8eSopenharmony_ci   *
257861847f8eSopenharmony_ci   * @enum { number }
257961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
258061847f8eSopenharmony_ci   * @crossplatform
258161847f8eSopenharmony_ci   * @atomicservice
258261847f8eSopenharmony_ci   * @since 11
258361847f8eSopenharmony_ci   */
258461847f8eSopenharmony_ci  /**
258561847f8eSopenharmony_ci   * Enum for image scale mode.
258661847f8eSopenharmony_ci   *
258761847f8eSopenharmony_ci   * @enum { number }
258861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
258961847f8eSopenharmony_ci   * @crossplatform
259061847f8eSopenharmony_ci   * @form
259161847f8eSopenharmony_ci   * @atomicservice
259261847f8eSopenharmony_ci   * @since 12
259361847f8eSopenharmony_ci   */
259461847f8eSopenharmony_ci  enum ScaleMode {
259561847f8eSopenharmony_ci    /**
259661847f8eSopenharmony_ci     * Indicates the effect that fits the image into the target size.
259761847f8eSopenharmony_ci     *
259861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
259961847f8eSopenharmony_ci     * @since 9
260061847f8eSopenharmony_ci     */
260161847f8eSopenharmony_ci    /**
260261847f8eSopenharmony_ci     * Indicates the effect that fits the image into the target size.
260361847f8eSopenharmony_ci     *
260461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
260561847f8eSopenharmony_ci     * @crossplatform
260661847f8eSopenharmony_ci     * @since 10
260761847f8eSopenharmony_ci     */
260861847f8eSopenharmony_ci    /**
260961847f8eSopenharmony_ci     * Indicates the effect that fits the image into the target size.
261061847f8eSopenharmony_ci     *
261161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
261261847f8eSopenharmony_ci     * @crossplatform
261361847f8eSopenharmony_ci     * @atomicservice
261461847f8eSopenharmony_ci     * @since 11
261561847f8eSopenharmony_ci     */
261661847f8eSopenharmony_ci    /**
261761847f8eSopenharmony_ci     * Indicates the effect that fits the image into the target size.
261861847f8eSopenharmony_ci     *
261961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
262061847f8eSopenharmony_ci     * @crossplatform
262161847f8eSopenharmony_ci     * @form
262261847f8eSopenharmony_ci     * @atomicservice
262361847f8eSopenharmony_ci     * @since 12
262461847f8eSopenharmony_ci     */
262561847f8eSopenharmony_ci    FIT_TARGET_SIZE = 0,
262661847f8eSopenharmony_ci
262761847f8eSopenharmony_ci    /**
262861847f8eSopenharmony_ci     * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.
262961847f8eSopenharmony_ci     *
263061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
263161847f8eSopenharmony_ci     * @since 9
263261847f8eSopenharmony_ci     */
263361847f8eSopenharmony_ci    /**
263461847f8eSopenharmony_ci     * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.
263561847f8eSopenharmony_ci     *
263661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
263761847f8eSopenharmony_ci     * @crossplatform
263861847f8eSopenharmony_ci     * @since 10
263961847f8eSopenharmony_ci     */
264061847f8eSopenharmony_ci    /**
264161847f8eSopenharmony_ci     * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.
264261847f8eSopenharmony_ci     *
264361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
264461847f8eSopenharmony_ci     * @crossplatform
264561847f8eSopenharmony_ci     * @atomicservice
264661847f8eSopenharmony_ci     * @since 11
264761847f8eSopenharmony_ci     */
264861847f8eSopenharmony_ci    /**
264961847f8eSopenharmony_ci     * Indicates the effect that scales an image to fill the target image area and center-crops the part outside the area.
265061847f8eSopenharmony_ci     *
265161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
265261847f8eSopenharmony_ci     * @crossplatform
265361847f8eSopenharmony_ci     * @form
265461847f8eSopenharmony_ci     * @atomicservice
265561847f8eSopenharmony_ci     * @since 12
265661847f8eSopenharmony_ci     */
265761847f8eSopenharmony_ci    CENTER_CROP = 1
265861847f8eSopenharmony_ci  }
265961847f8eSopenharmony_ci
266061847f8eSopenharmony_ci  /**
266161847f8eSopenharmony_ci   * The component type of image.
266261847f8eSopenharmony_ci   *
266361847f8eSopenharmony_ci   * @enum { number }
266461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageReceiver
266561847f8eSopenharmony_ci   * @since 9
266661847f8eSopenharmony_ci   */
266761847f8eSopenharmony_ci  enum ComponentType {
266861847f8eSopenharmony_ci    /**
266961847f8eSopenharmony_ci     * Luma info.
267061847f8eSopenharmony_ci     *
267161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
267261847f8eSopenharmony_ci     * @since 9
267361847f8eSopenharmony_ci     */
267461847f8eSopenharmony_ci    YUV_Y = 1,
267561847f8eSopenharmony_ci
267661847f8eSopenharmony_ci    /**
267761847f8eSopenharmony_ci     * Chrominance info.
267861847f8eSopenharmony_ci     *
267961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
268061847f8eSopenharmony_ci     * @since 9
268161847f8eSopenharmony_ci     */
268261847f8eSopenharmony_ci    YUV_U = 2,
268361847f8eSopenharmony_ci
268461847f8eSopenharmony_ci    /**
268561847f8eSopenharmony_ci     * Chroma info.
268661847f8eSopenharmony_ci     *
268761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
268861847f8eSopenharmony_ci     * @since 9
268961847f8eSopenharmony_ci     */
269061847f8eSopenharmony_ci    YUV_V = 3,
269161847f8eSopenharmony_ci
269261847f8eSopenharmony_ci    /**
269361847f8eSopenharmony_ci     * Jpeg type.
269461847f8eSopenharmony_ci     *
269561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
269661847f8eSopenharmony_ci     * @since 9
269761847f8eSopenharmony_ci     */
269861847f8eSopenharmony_ci    JPEG = 4
269961847f8eSopenharmony_ci  }
270061847f8eSopenharmony_ci
270161847f8eSopenharmony_ci  /**
270261847f8eSopenharmony_ci   * Enumerates the HDR metadata types that need to be stored in Pixelmap.
270361847f8eSopenharmony_ci   *
270461847f8eSopenharmony_ci   * @enum { number }
270561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
270661847f8eSopenharmony_ci   * @since 12
270761847f8eSopenharmony_ci   */
270861847f8eSopenharmony_ci  enum HdrMetadataKey {
270961847f8eSopenharmony_ci    /**
271061847f8eSopenharmony_ci     * Indicate the types of metadata that image needs to use.
271161847f8eSopenharmony_ci     *
271261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
271361847f8eSopenharmony_ci     * @since 12
271461847f8eSopenharmony_ci     */
271561847f8eSopenharmony_ci    HDR_METADATA_TYPE = 0,
271661847f8eSopenharmony_ci
271761847f8eSopenharmony_ci    /**
271861847f8eSopenharmony_ci     * Static metadata key.
271961847f8eSopenharmony_ci     *
272061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
272161847f8eSopenharmony_ci     * @since 12
272261847f8eSopenharmony_ci     */
272361847f8eSopenharmony_ci    HDR_STATIC_METADATA = 1,
272461847f8eSopenharmony_ci
272561847f8eSopenharmony_ci    /**
272661847f8eSopenharmony_ci     * Dynamic metadata key.
272761847f8eSopenharmony_ci     *
272861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
272961847f8eSopenharmony_ci     * @since 12
273061847f8eSopenharmony_ci     */
273161847f8eSopenharmony_ci    HDR_DYNAMIC_METADATA = 2,
273261847f8eSopenharmony_ci
273361847f8eSopenharmony_ci    /**
273461847f8eSopenharmony_ci     * Gainmap metadata key.
273561847f8eSopenharmony_ci     *
273661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
273761847f8eSopenharmony_ci     * @since 12
273861847f8eSopenharmony_ci     */
273961847f8eSopenharmony_ci    HDR_GAINMAP_METADATA = 3,
274061847f8eSopenharmony_ci  }
274161847f8eSopenharmony_ci
274261847f8eSopenharmony_ci  /**
274361847f8eSopenharmony_ci   * Value for HDR_METADATA_TYPE.
274461847f8eSopenharmony_ci   *
274561847f8eSopenharmony_ci   * @enum { number }
274661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
274761847f8eSopenharmony_ci   * @since 12
274861847f8eSopenharmony_ci   */
274961847f8eSopenharmony_ci  enum HdrMetadataType {
275061847f8eSopenharmony_ci    /**
275161847f8eSopenharmony_ci     * No metadata.
275261847f8eSopenharmony_ci     *
275361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
275461847f8eSopenharmony_ci     * @since 12
275561847f8eSopenharmony_ci     */
275661847f8eSopenharmony_ci    NONE = 0,
275761847f8eSopenharmony_ci
275861847f8eSopenharmony_ci    /**
275961847f8eSopenharmony_ci     * Indicates that metadata will be used for the base image.
276061847f8eSopenharmony_ci     *
276161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
276261847f8eSopenharmony_ci     * @since 12
276361847f8eSopenharmony_ci     */
276461847f8eSopenharmony_ci    BASE = 1,
276561847f8eSopenharmony_ci
276661847f8eSopenharmony_ci    /**
276761847f8eSopenharmony_ci     * Indicates that metadata will be used for the gainmap image.
276861847f8eSopenharmony_ci     *
276961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
277061847f8eSopenharmony_ci     * @since 12
277161847f8eSopenharmony_ci     */
277261847f8eSopenharmony_ci    GAINMAP = 2,
277361847f8eSopenharmony_ci
277461847f8eSopenharmony_ci    /**
277561847f8eSopenharmony_ci     * Indicates that metadata will be used for the alternate image.
277661847f8eSopenharmony_ci     *
277761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
277861847f8eSopenharmony_ci     * @since 12
277961847f8eSopenharmony_ci     */
278061847f8eSopenharmony_ci    ALTERNATE = 3,
278161847f8eSopenharmony_ci  }
278261847f8eSopenharmony_ci
278361847f8eSopenharmony_ci  /**
278461847f8eSopenharmony_ci   * Describes region information.
278561847f8eSopenharmony_ci   *
278661847f8eSopenharmony_ci   * @typedef Region
278761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
278861847f8eSopenharmony_ci   * @since 8
278961847f8eSopenharmony_ci   */
279061847f8eSopenharmony_ci  /**
279161847f8eSopenharmony_ci   * Describes region information.
279261847f8eSopenharmony_ci   *
279361847f8eSopenharmony_ci   * @typedef Region
279461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
279561847f8eSopenharmony_ci   * @crossplatform
279661847f8eSopenharmony_ci   * @since 10
279761847f8eSopenharmony_ci   */
279861847f8eSopenharmony_ci  /**
279961847f8eSopenharmony_ci   * Describes region information.
280061847f8eSopenharmony_ci   *
280161847f8eSopenharmony_ci   * @typedef Region
280261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
280361847f8eSopenharmony_ci   * @crossplatform
280461847f8eSopenharmony_ci   * @atomicservice
280561847f8eSopenharmony_ci   * @since 11
280661847f8eSopenharmony_ci   */
280761847f8eSopenharmony_ci  /**
280861847f8eSopenharmony_ci   * Describes region information.
280961847f8eSopenharmony_ci   *
281061847f8eSopenharmony_ci   * @typedef Region
281161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
281261847f8eSopenharmony_ci   * @crossplatform
281361847f8eSopenharmony_ci   * @form
281461847f8eSopenharmony_ci   * @atomicservice
281561847f8eSopenharmony_ci   * @since 12
281661847f8eSopenharmony_ci   */
281761847f8eSopenharmony_ci  interface Region {
281861847f8eSopenharmony_ci    /**
281961847f8eSopenharmony_ci     * Image size.
282061847f8eSopenharmony_ci     *
282161847f8eSopenharmony_ci     * @type { Size }
282261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
282361847f8eSopenharmony_ci     * @since 7
282461847f8eSopenharmony_ci     */
282561847f8eSopenharmony_ci    /**
282661847f8eSopenharmony_ci     * Image size.
282761847f8eSopenharmony_ci     *
282861847f8eSopenharmony_ci     * @type { Size }
282961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
283061847f8eSopenharmony_ci     * @crossplatform
283161847f8eSopenharmony_ci     * @since 10
283261847f8eSopenharmony_ci     */
283361847f8eSopenharmony_ci    /**
283461847f8eSopenharmony_ci     * Image size.
283561847f8eSopenharmony_ci     *
283661847f8eSopenharmony_ci     * @type { Size }
283761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
283861847f8eSopenharmony_ci     * @crossplatform
283961847f8eSopenharmony_ci     * @atomicservice
284061847f8eSopenharmony_ci     * @since 11
284161847f8eSopenharmony_ci     */
284261847f8eSopenharmony_ci    /**
284361847f8eSopenharmony_ci     * Image size.
284461847f8eSopenharmony_ci     *
284561847f8eSopenharmony_ci     * @type { Size }
284661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
284761847f8eSopenharmony_ci     * @crossplatform
284861847f8eSopenharmony_ci     * @form
284961847f8eSopenharmony_ci     * @atomicservice
285061847f8eSopenharmony_ci     * @since 12
285161847f8eSopenharmony_ci     */
285261847f8eSopenharmony_ci    size: Size;
285361847f8eSopenharmony_ci
285461847f8eSopenharmony_ci    /**
285561847f8eSopenharmony_ci     * x-coordinate at the upper left corner of the image.
285661847f8eSopenharmony_ci     *
285761847f8eSopenharmony_ci     * @type { number }
285861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
285961847f8eSopenharmony_ci     * @since 7
286061847f8eSopenharmony_ci     */
286161847f8eSopenharmony_ci    /**
286261847f8eSopenharmony_ci     * x-coordinate at the upper left corner of the image.
286361847f8eSopenharmony_ci     *
286461847f8eSopenharmony_ci     * @type { number }
286561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
286661847f8eSopenharmony_ci     * @crossplatform
286761847f8eSopenharmony_ci     * @since 10
286861847f8eSopenharmony_ci     */
286961847f8eSopenharmony_ci    /**
287061847f8eSopenharmony_ci     * x-coordinate at the upper left corner of the image.
287161847f8eSopenharmony_ci     *
287261847f8eSopenharmony_ci     * @type { number }
287361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
287461847f8eSopenharmony_ci     * @crossplatform
287561847f8eSopenharmony_ci     * @atomicservice
287661847f8eSopenharmony_ci     * @since 11
287761847f8eSopenharmony_ci     */
287861847f8eSopenharmony_ci    /**
287961847f8eSopenharmony_ci     * x-coordinate at the upper left corner of the image.
288061847f8eSopenharmony_ci     *
288161847f8eSopenharmony_ci     * @type { number }
288261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
288361847f8eSopenharmony_ci     * @crossplatform
288461847f8eSopenharmony_ci     * @form
288561847f8eSopenharmony_ci     * @atomicservice
288661847f8eSopenharmony_ci     * @since 12
288761847f8eSopenharmony_ci     */
288861847f8eSopenharmony_ci    x: number;
288961847f8eSopenharmony_ci
289061847f8eSopenharmony_ci    /**
289161847f8eSopenharmony_ci     * y-coordinate at the upper left corner of the image.
289261847f8eSopenharmony_ci     *
289361847f8eSopenharmony_ci     * @type { number }
289461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
289561847f8eSopenharmony_ci     * @since 7
289661847f8eSopenharmony_ci     */
289761847f8eSopenharmony_ci    /**
289861847f8eSopenharmony_ci     * y-coordinate at the upper left corner of the image.
289961847f8eSopenharmony_ci     *
290061847f8eSopenharmony_ci     * @type { number }
290161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
290261847f8eSopenharmony_ci     * @crossplatform
290361847f8eSopenharmony_ci     * @since 10
290461847f8eSopenharmony_ci     */
290561847f8eSopenharmony_ci    /**
290661847f8eSopenharmony_ci     * y-coordinate at the upper left corner of the image.
290761847f8eSopenharmony_ci     *
290861847f8eSopenharmony_ci     * @type { number }
290961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
291061847f8eSopenharmony_ci     * @crossplatform
291161847f8eSopenharmony_ci     * @atomicservice
291261847f8eSopenharmony_ci     * @since 11
291361847f8eSopenharmony_ci     */
291461847f8eSopenharmony_ci    /**
291561847f8eSopenharmony_ci     * y-coordinate at the upper left corner of the image.
291661847f8eSopenharmony_ci     *
291761847f8eSopenharmony_ci     * @type { number }
291861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
291961847f8eSopenharmony_ci     * @crossplatform
292061847f8eSopenharmony_ci     * @form
292161847f8eSopenharmony_ci     * @atomicservice
292261847f8eSopenharmony_ci     * @since 12
292361847f8eSopenharmony_ci     */
292461847f8eSopenharmony_ci    y: number;
292561847f8eSopenharmony_ci  }
292661847f8eSopenharmony_ci
292761847f8eSopenharmony_ci  /**
292861847f8eSopenharmony_ci   * Describes area information in an image.
292961847f8eSopenharmony_ci   *
293061847f8eSopenharmony_ci   * @typedef PositionArea
293161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
293261847f8eSopenharmony_ci   * @since 7
293361847f8eSopenharmony_ci   */
293461847f8eSopenharmony_ci  /**
293561847f8eSopenharmony_ci   * Describes area information in an image.
293661847f8eSopenharmony_ci   *
293761847f8eSopenharmony_ci   * @typedef PositionArea
293861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
293961847f8eSopenharmony_ci   * @crossplatform
294061847f8eSopenharmony_ci   * @since 10
294161847f8eSopenharmony_ci   */
294261847f8eSopenharmony_ci  /**
294361847f8eSopenharmony_ci   * Describes area information in an image.
294461847f8eSopenharmony_ci   *
294561847f8eSopenharmony_ci   * @typedef PositionArea
294661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
294761847f8eSopenharmony_ci   * @crossplatform
294861847f8eSopenharmony_ci   * @atomicservice
294961847f8eSopenharmony_ci   * @since 11
295061847f8eSopenharmony_ci   */
295161847f8eSopenharmony_ci  /**
295261847f8eSopenharmony_ci   * Describes area information in an image.
295361847f8eSopenharmony_ci   *
295461847f8eSopenharmony_ci   * @typedef PositionArea
295561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
295661847f8eSopenharmony_ci   * @crossplatform
295761847f8eSopenharmony_ci   * @form
295861847f8eSopenharmony_ci   * @atomicservice
295961847f8eSopenharmony_ci   * @since 12
296061847f8eSopenharmony_ci   */
296161847f8eSopenharmony_ci  interface PositionArea {
296261847f8eSopenharmony_ci    /**
296361847f8eSopenharmony_ci     * Image data that will be read or written.
296461847f8eSopenharmony_ci     *
296561847f8eSopenharmony_ci     * @type { ArrayBuffer }
296661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
296761847f8eSopenharmony_ci     * @since 7
296861847f8eSopenharmony_ci     */
296961847f8eSopenharmony_ci    /**
297061847f8eSopenharmony_ci     * Image data that will be read or written.
297161847f8eSopenharmony_ci     *
297261847f8eSopenharmony_ci     * @type { ArrayBuffer }
297361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
297461847f8eSopenharmony_ci     * @crossplatform
297561847f8eSopenharmony_ci     * @since 10
297661847f8eSopenharmony_ci     */
297761847f8eSopenharmony_ci    /**
297861847f8eSopenharmony_ci     * Image data that will be read or written.
297961847f8eSopenharmony_ci     *
298061847f8eSopenharmony_ci     * @type { ArrayBuffer }
298161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
298261847f8eSopenharmony_ci     * @crossplatform
298361847f8eSopenharmony_ci     * @atomicservice
298461847f8eSopenharmony_ci     * @since 11
298561847f8eSopenharmony_ci     */
298661847f8eSopenharmony_ci    /**
298761847f8eSopenharmony_ci     * Image data that will be read or written.
298861847f8eSopenharmony_ci     *
298961847f8eSopenharmony_ci     * @type { ArrayBuffer }
299061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
299161847f8eSopenharmony_ci     * @crossplatform
299261847f8eSopenharmony_ci     * @form
299361847f8eSopenharmony_ci     * @atomicservice
299461847f8eSopenharmony_ci     * @since 12
299561847f8eSopenharmony_ci     */
299661847f8eSopenharmony_ci    pixels: ArrayBuffer;
299761847f8eSopenharmony_ci
299861847f8eSopenharmony_ci    /**
299961847f8eSopenharmony_ci     * Offset for data reading.
300061847f8eSopenharmony_ci     *
300161847f8eSopenharmony_ci     * @type { number }
300261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
300361847f8eSopenharmony_ci     * @since 7
300461847f8eSopenharmony_ci     */
300561847f8eSopenharmony_ci    /**
300661847f8eSopenharmony_ci     * Offset for data reading.
300761847f8eSopenharmony_ci     *
300861847f8eSopenharmony_ci     * @type { number }
300961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
301061847f8eSopenharmony_ci     * @crossplatform
301161847f8eSopenharmony_ci     * @since 10
301261847f8eSopenharmony_ci     */
301361847f8eSopenharmony_ci    /**
301461847f8eSopenharmony_ci     * Offset for data reading.
301561847f8eSopenharmony_ci     *
301661847f8eSopenharmony_ci     * @type { number }
301761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
301861847f8eSopenharmony_ci     * @crossplatform
301961847f8eSopenharmony_ci     * @atomicservice
302061847f8eSopenharmony_ci     * @since 11
302161847f8eSopenharmony_ci     */
302261847f8eSopenharmony_ci    /**
302361847f8eSopenharmony_ci     * Offset for data reading.
302461847f8eSopenharmony_ci     *
302561847f8eSopenharmony_ci     * @type { number }
302661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
302761847f8eSopenharmony_ci     * @crossplatform
302861847f8eSopenharmony_ci     * @form
302961847f8eSopenharmony_ci     * @atomicservice
303061847f8eSopenharmony_ci     * @since 12
303161847f8eSopenharmony_ci     */
303261847f8eSopenharmony_ci    offset: number;
303361847f8eSopenharmony_ci
303461847f8eSopenharmony_ci    /**
303561847f8eSopenharmony_ci     * Number of bytes to read.
303661847f8eSopenharmony_ci     *
303761847f8eSopenharmony_ci     * @type { number }
303861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
303961847f8eSopenharmony_ci     * @since 7
304061847f8eSopenharmony_ci     */
304161847f8eSopenharmony_ci    /**
304261847f8eSopenharmony_ci     * Number of bytes to read.
304361847f8eSopenharmony_ci     *
304461847f8eSopenharmony_ci     * @type { number }
304561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
304661847f8eSopenharmony_ci     * @crossplatform
304761847f8eSopenharmony_ci     * @since 10
304861847f8eSopenharmony_ci     */
304961847f8eSopenharmony_ci    /**
305061847f8eSopenharmony_ci     * Number of bytes to read.
305161847f8eSopenharmony_ci     *
305261847f8eSopenharmony_ci     * @type { number }
305361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
305461847f8eSopenharmony_ci     * @crossplatform
305561847f8eSopenharmony_ci     * @atomicservice
305661847f8eSopenharmony_ci     * @since 11
305761847f8eSopenharmony_ci     */
305861847f8eSopenharmony_ci    /**
305961847f8eSopenharmony_ci     * Number of bytes to read.
306061847f8eSopenharmony_ci     *
306161847f8eSopenharmony_ci     * @type { number }
306261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
306361847f8eSopenharmony_ci     * @crossplatform
306461847f8eSopenharmony_ci     * @form
306561847f8eSopenharmony_ci     * @atomicservice
306661847f8eSopenharmony_ci     * @since 12
306761847f8eSopenharmony_ci     */
306861847f8eSopenharmony_ci    stride: number;
306961847f8eSopenharmony_ci
307061847f8eSopenharmony_ci    /**
307161847f8eSopenharmony_ci     * Region to read.
307261847f8eSopenharmony_ci     *
307361847f8eSopenharmony_ci     * @type { Region }
307461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
307561847f8eSopenharmony_ci     * @since 7
307661847f8eSopenharmony_ci     */
307761847f8eSopenharmony_ci    /**
307861847f8eSopenharmony_ci     * Region to read.
307961847f8eSopenharmony_ci     *
308061847f8eSopenharmony_ci     * @type { Region }
308161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
308261847f8eSopenharmony_ci     * @crossplatform
308361847f8eSopenharmony_ci     * @since 10
308461847f8eSopenharmony_ci     */
308561847f8eSopenharmony_ci    /**
308661847f8eSopenharmony_ci     * Region to read.
308761847f8eSopenharmony_ci     *
308861847f8eSopenharmony_ci     * @type { Region }
308961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
309061847f8eSopenharmony_ci     * @crossplatform
309161847f8eSopenharmony_ci     * @atomicservice
309261847f8eSopenharmony_ci     * @since 11
309361847f8eSopenharmony_ci     */
309461847f8eSopenharmony_ci    /**
309561847f8eSopenharmony_ci     * Region to read.
309661847f8eSopenharmony_ci     *
309761847f8eSopenharmony_ci     * @type { Region }
309861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
309961847f8eSopenharmony_ci     * @crossplatform
310061847f8eSopenharmony_ci     * @form
310161847f8eSopenharmony_ci     * @atomicservice
310261847f8eSopenharmony_ci     * @since 12
310361847f8eSopenharmony_ci     */
310461847f8eSopenharmony_ci    region: Region;
310561847f8eSopenharmony_ci  }
310661847f8eSopenharmony_ci
310761847f8eSopenharmony_ci  /**
310861847f8eSopenharmony_ci   * Describes image information.
310961847f8eSopenharmony_ci   *
311061847f8eSopenharmony_ci   * @typedef ImageInfo
311161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
311261847f8eSopenharmony_ci   * @since 6
311361847f8eSopenharmony_ci   */
311461847f8eSopenharmony_ci  /**
311561847f8eSopenharmony_ci   * Describes image information.
311661847f8eSopenharmony_ci   *
311761847f8eSopenharmony_ci   * @typedef ImageInfo
311861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
311961847f8eSopenharmony_ci   * @crossplatform
312061847f8eSopenharmony_ci   * @since 10
312161847f8eSopenharmony_ci   */
312261847f8eSopenharmony_ci  /**
312361847f8eSopenharmony_ci   * Describes image information.
312461847f8eSopenharmony_ci   *
312561847f8eSopenharmony_ci   * @typedef ImageInfo
312661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
312761847f8eSopenharmony_ci   * @crossplatform
312861847f8eSopenharmony_ci   * @atomicservice
312961847f8eSopenharmony_ci   * @since 11
313061847f8eSopenharmony_ci   */
313161847f8eSopenharmony_ci  /**
313261847f8eSopenharmony_ci   * Describes image information.
313361847f8eSopenharmony_ci   *
313461847f8eSopenharmony_ci   * @typedef ImageInfo
313561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
313661847f8eSopenharmony_ci   * @crossplatform
313761847f8eSopenharmony_ci   * @form
313861847f8eSopenharmony_ci   * @atomicservice
313961847f8eSopenharmony_ci   * @since 12
314061847f8eSopenharmony_ci   */
314161847f8eSopenharmony_ci  interface ImageInfo {
314261847f8eSopenharmony_ci    /**
314361847f8eSopenharmony_ci     * Indicates image dimensions specified by a {@link Size} interface.
314461847f8eSopenharmony_ci     *
314561847f8eSopenharmony_ci     * @type { Size }
314661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
314761847f8eSopenharmony_ci     * @since 6
314861847f8eSopenharmony_ci     */
314961847f8eSopenharmony_ci    /**
315061847f8eSopenharmony_ci     * Indicates image dimensions specified by a {@link Size} interface.
315161847f8eSopenharmony_ci     *
315261847f8eSopenharmony_ci     * @type { Size }
315361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
315461847f8eSopenharmony_ci     * @crossplatform
315561847f8eSopenharmony_ci     * @since 10
315661847f8eSopenharmony_ci     */
315761847f8eSopenharmony_ci    /**
315861847f8eSopenharmony_ci     * Indicates image dimensions specified by a {@link Size} interface.
315961847f8eSopenharmony_ci     *
316061847f8eSopenharmony_ci     * @type { Size }
316161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
316261847f8eSopenharmony_ci     * @crossplatform
316361847f8eSopenharmony_ci     * @atomicservice
316461847f8eSopenharmony_ci     * @since 11
316561847f8eSopenharmony_ci     */
316661847f8eSopenharmony_ci    /**
316761847f8eSopenharmony_ci     * Indicates image dimensions specified by a {@link Size} interface.
316861847f8eSopenharmony_ci     *
316961847f8eSopenharmony_ci     * @type { Size }
317061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
317161847f8eSopenharmony_ci     * @crossplatform
317261847f8eSopenharmony_ci     * @form
317361847f8eSopenharmony_ci     * @atomicservice
317461847f8eSopenharmony_ci     * @since 12
317561847f8eSopenharmony_ci     */
317661847f8eSopenharmony_ci    size: Size;
317761847f8eSopenharmony_ci
317861847f8eSopenharmony_ci    /**
317961847f8eSopenharmony_ci     * Indicates image default density.
318061847f8eSopenharmony_ci     *
318161847f8eSopenharmony_ci     * @type { number }
318261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
318361847f8eSopenharmony_ci     * @since 9
318461847f8eSopenharmony_ci     */
318561847f8eSopenharmony_ci    /**
318661847f8eSopenharmony_ci     * Indicates image default density.
318761847f8eSopenharmony_ci     *
318861847f8eSopenharmony_ci     * @type { number }
318961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
319061847f8eSopenharmony_ci     * @crossplatform
319161847f8eSopenharmony_ci     * @since 10
319261847f8eSopenharmony_ci     */
319361847f8eSopenharmony_ci    /**
319461847f8eSopenharmony_ci     * Indicates image default density.
319561847f8eSopenharmony_ci     *
319661847f8eSopenharmony_ci     * @type { number }
319761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
319861847f8eSopenharmony_ci     * @crossplatform
319961847f8eSopenharmony_ci     * @atomicservice
320061847f8eSopenharmony_ci     * @since 11
320161847f8eSopenharmony_ci     */
320261847f8eSopenharmony_ci    /**
320361847f8eSopenharmony_ci     * Indicates image default density.
320461847f8eSopenharmony_ci     *
320561847f8eSopenharmony_ci     * @type { number }
320661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
320761847f8eSopenharmony_ci     * @crossplatform
320861847f8eSopenharmony_ci     * @form
320961847f8eSopenharmony_ci     * @atomicservice
321061847f8eSopenharmony_ci     * @since 12
321161847f8eSopenharmony_ci     */
321261847f8eSopenharmony_ci    density: number;
321361847f8eSopenharmony_ci
321461847f8eSopenharmony_ci    /**
321561847f8eSopenharmony_ci     * The number of byte per row.
321661847f8eSopenharmony_ci     *
321761847f8eSopenharmony_ci     * @type { number }
321861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
321961847f8eSopenharmony_ci     * @atomicservice
322061847f8eSopenharmony_ci     * @since 11
322161847f8eSopenharmony_ci     */
322261847f8eSopenharmony_ci    /**
322361847f8eSopenharmony_ci     * The number of byte per row.
322461847f8eSopenharmony_ci     *
322561847f8eSopenharmony_ci     * @type { number }
322661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
322761847f8eSopenharmony_ci     * @form
322861847f8eSopenharmony_ci     * @atomicservice
322961847f8eSopenharmony_ci     * @since 12
323061847f8eSopenharmony_ci     */
323161847f8eSopenharmony_ci    stride: number;
323261847f8eSopenharmony_ci
323361847f8eSopenharmony_ci    /**
323461847f8eSopenharmony_ci     * Indicates image format.
323561847f8eSopenharmony_ci     *
323661847f8eSopenharmony_ci     * @type { PixelMapFormat }
323761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
323861847f8eSopenharmony_ci     * @crossplatform
323961847f8eSopenharmony_ci     * @form
324061847f8eSopenharmony_ci     * @atomicservice
324161847f8eSopenharmony_ci     * @since 12
324261847f8eSopenharmony_ci     */
324361847f8eSopenharmony_ci    pixelFormat: PixelMapFormat;
324461847f8eSopenharmony_ci
324561847f8eSopenharmony_ci    /**
324661847f8eSopenharmony_ci     * Indicates image alpha type.
324761847f8eSopenharmony_ci     *
324861847f8eSopenharmony_ci     * @type { AlphaType }
324961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
325061847f8eSopenharmony_ci     * @crossplatform
325161847f8eSopenharmony_ci     * @form
325261847f8eSopenharmony_ci     * @atomicservice
325361847f8eSopenharmony_ci     * @since 12
325461847f8eSopenharmony_ci     */
325561847f8eSopenharmony_ci    alphaType: AlphaType;
325661847f8eSopenharmony_ci
325761847f8eSopenharmony_ci    /**
325861847f8eSopenharmony_ci     * Indicates image mime type.
325961847f8eSopenharmony_ci     *
326061847f8eSopenharmony_ci     * @type { string }
326161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
326261847f8eSopenharmony_ci     * @crossplatform
326361847f8eSopenharmony_ci     * @since 12
326461847f8eSopenharmony_ci     */
326561847f8eSopenharmony_ci    mimeType: string;
326661847f8eSopenharmony_ci
326761847f8eSopenharmony_ci    /**
326861847f8eSopenharmony_ci     * Indicates whether the image high dynamic range
326961847f8eSopenharmony_ci     *
327061847f8eSopenharmony_ci     * @type { boolean }
327161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
327261847f8eSopenharmony_ci     * @since 12
327361847f8eSopenharmony_ci     */
327461847f8eSopenharmony_ci    isHdr: boolean;
327561847f8eSopenharmony_ci  }
327661847f8eSopenharmony_ci
327761847f8eSopenharmony_ci  /**
327861847f8eSopenharmony_ci   * Describes the option for image packing.
327961847f8eSopenharmony_ci   *
328061847f8eSopenharmony_ci   * @typedef PackingOption
328161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
328261847f8eSopenharmony_ci   * @since 6
328361847f8eSopenharmony_ci   */
328461847f8eSopenharmony_ci  /**
328561847f8eSopenharmony_ci   * Describes the option for image packing.
328661847f8eSopenharmony_ci   *
328761847f8eSopenharmony_ci   * @typedef PackingOption
328861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
328961847f8eSopenharmony_ci   * @crossplatform
329061847f8eSopenharmony_ci   * @since 10
329161847f8eSopenharmony_ci   */
329261847f8eSopenharmony_ci  /**
329361847f8eSopenharmony_ci   * Describes the option for image packing.
329461847f8eSopenharmony_ci   *
329561847f8eSopenharmony_ci   * @typedef PackingOption
329661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
329761847f8eSopenharmony_ci   * @crossplatform
329861847f8eSopenharmony_ci   * @atomicservice
329961847f8eSopenharmony_ci   * @since 11
330061847f8eSopenharmony_ci   */
330161847f8eSopenharmony_ci  interface PackingOption {
330261847f8eSopenharmony_ci    /**
330361847f8eSopenharmony_ci     * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.
330461847f8eSopenharmony_ci     *
330561847f8eSopenharmony_ci     * @type { string }
330661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
330761847f8eSopenharmony_ci     * @since 6
330861847f8eSopenharmony_ci     */
330961847f8eSopenharmony_ci    /**
331061847f8eSopenharmony_ci     * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.
331161847f8eSopenharmony_ci     *
331261847f8eSopenharmony_ci     * @type { string }
331361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
331461847f8eSopenharmony_ci     * @crossplatform
331561847f8eSopenharmony_ci     * @since 10
331661847f8eSopenharmony_ci     */
331761847f8eSopenharmony_ci    /**
331861847f8eSopenharmony_ci     * Multipurpose Internet Mail Extensions (MIME) format of the target image, for example, image/jpeg.
331961847f8eSopenharmony_ci     *
332061847f8eSopenharmony_ci     * @type { string }
332161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
332261847f8eSopenharmony_ci     * @crossplatform
332361847f8eSopenharmony_ci     * @atomicservice
332461847f8eSopenharmony_ci     * @since 11
332561847f8eSopenharmony_ci     */
332661847f8eSopenharmony_ci    format: string;
332761847f8eSopenharmony_ci
332861847f8eSopenharmony_ci    /**
332961847f8eSopenharmony_ci     * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.
333061847f8eSopenharmony_ci     *
333161847f8eSopenharmony_ci     * @type { number }
333261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
333361847f8eSopenharmony_ci     * @since 6
333461847f8eSopenharmony_ci     */
333561847f8eSopenharmony_ci    /**
333661847f8eSopenharmony_ci     * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.
333761847f8eSopenharmony_ci     *
333861847f8eSopenharmony_ci     * @type { number }
333961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
334061847f8eSopenharmony_ci     * @crossplatform
334161847f8eSopenharmony_ci     * @since 10
334261847f8eSopenharmony_ci     */
334361847f8eSopenharmony_ci    /**
334461847f8eSopenharmony_ci     * Quality of the target image. The value is an integer ranging from 0 to 100. A larger value indicates better.
334561847f8eSopenharmony_ci     *
334661847f8eSopenharmony_ci     * @type { number }
334761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
334861847f8eSopenharmony_ci     * @crossplatform
334961847f8eSopenharmony_ci     * @atomicservice
335061847f8eSopenharmony_ci     * @since 11
335161847f8eSopenharmony_ci     */
335261847f8eSopenharmony_ci    quality: number;
335361847f8eSopenharmony_ci
335461847f8eSopenharmony_ci    /**
335561847f8eSopenharmony_ci     * BufferSize of the target image.
335661847f8eSopenharmony_ci     * If this bufferSize is less than or equal to 0, it will be converted to 10MB.
335761847f8eSopenharmony_ci     *
335861847f8eSopenharmony_ci     * @type { ?number }
335961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
336061847f8eSopenharmony_ci     * @since 9
336161847f8eSopenharmony_ci     */
336261847f8eSopenharmony_ci    /**
336361847f8eSopenharmony_ci     * BufferSize of the target image.
336461847f8eSopenharmony_ci     * If this bufferSize is less than or equal to 0, it will be converted to 10MB.
336561847f8eSopenharmony_ci     *
336661847f8eSopenharmony_ci     * @type { ?number }
336761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
336861847f8eSopenharmony_ci     * @crossplatform
336961847f8eSopenharmony_ci     * @since 10
337061847f8eSopenharmony_ci     */
337161847f8eSopenharmony_ci    /**
337261847f8eSopenharmony_ci     * BufferSize of the target image.
337361847f8eSopenharmony_ci     * If this bufferSize is less than or equal to 0, it will be converted to 10MB.
337461847f8eSopenharmony_ci     *
337561847f8eSopenharmony_ci     * @type { ?number }
337661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
337761847f8eSopenharmony_ci     * @crossplatform
337861847f8eSopenharmony_ci     * @atomicservice
337961847f8eSopenharmony_ci     * @since 11
338061847f8eSopenharmony_ci     */
338161847f8eSopenharmony_ci    bufferSize?: number;
338261847f8eSopenharmony_ci
338361847f8eSopenharmony_ci    /**
338461847f8eSopenharmony_ci     * The desired dynamic range of the target image.
338561847f8eSopenharmony_ci     *
338661847f8eSopenharmony_ci     * @type { ?PackingDynamicRange }
338761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
338861847f8eSopenharmony_ci     * @since 12
338961847f8eSopenharmony_ci     */
339061847f8eSopenharmony_ci    desiredDynamicRange?: PackingDynamicRange;
339161847f8eSopenharmony_ci
339261847f8eSopenharmony_ci    /**
339361847f8eSopenharmony_ci     * Whether the image properties can be saved, like Exif.
339461847f8eSopenharmony_ci     *
339561847f8eSopenharmony_ci     * @type { ?boolean }
339661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
339761847f8eSopenharmony_ci     * @since 12
339861847f8eSopenharmony_ci     */
339961847f8eSopenharmony_ci    needsPackProperties?: boolean;
340061847f8eSopenharmony_ci  }
340161847f8eSopenharmony_ci
340261847f8eSopenharmony_ci  /**
340361847f8eSopenharmony_ci   * Describes the options for image sequence packing.
340461847f8eSopenharmony_ci   *
340561847f8eSopenharmony_ci   * @typedef PackingOptionsForSequence
340661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
340761847f8eSopenharmony_ci   * @since 13
340861847f8eSopenharmony_ci   */
340961847f8eSopenharmony_ci  interface PackingOptionsForSequence {
341061847f8eSopenharmony_ci    /**
341161847f8eSopenharmony_ci     * Specify the number of frames.
341261847f8eSopenharmony_ci     *
341361847f8eSopenharmony_ci     * @type { number }
341461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
341561847f8eSopenharmony_ci     * @since 13
341661847f8eSopenharmony_ci     */
341761847f8eSopenharmony_ci    frameCount: number;
341861847f8eSopenharmony_ci
341961847f8eSopenharmony_ci    /**
342061847f8eSopenharmony_ci     * Specify the delay time for each frame of the dynamic image.
342161847f8eSopenharmony_ci     * If the length is less than frameCount, the missing parts will be filling with the last value
342261847f8eSopenharmony_ci     *
342361847f8eSopenharmony_ci     * @type { Array<number> }
342461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
342561847f8eSopenharmony_ci     * @since 13
342661847f8eSopenharmony_ci     */
342761847f8eSopenharmony_ci    delayTimeList: Array<number>;
342861847f8eSopenharmony_ci
342961847f8eSopenharmony_ci    /**
343061847f8eSopenharmony_ci     * Specify the disposal types of each frame in the image sequence packing.
343161847f8eSopenharmony_ci     *
343261847f8eSopenharmony_ci     * @type { ?Array<number> }
343361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
343461847f8eSopenharmony_ci     * @since 13
343561847f8eSopenharmony_ci     */
343661847f8eSopenharmony_ci    disposalTypes?: Array<number>;
343761847f8eSopenharmony_ci
343861847f8eSopenharmony_ci    /**
343961847f8eSopenharmony_ci     * Specify the number of times the loop should, the range is [0, 65535]
344061847f8eSopenharmony_ci     * If this loop is equal to 0, it will be infinite loop.
344161847f8eSopenharmony_ci     *
344261847f8eSopenharmony_ci     * @type { ?number }
344361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
344461847f8eSopenharmony_ci     * @since 13
344561847f8eSopenharmony_ci     */
344661847f8eSopenharmony_ci    loopCount?: number;
344761847f8eSopenharmony_ci  }
344861847f8eSopenharmony_ci
344961847f8eSopenharmony_ci  /**
345061847f8eSopenharmony_ci   * Describes image properties.
345161847f8eSopenharmony_ci   *
345261847f8eSopenharmony_ci   * @typedef GetImagePropertyOptions
345361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
345461847f8eSopenharmony_ci   * @since 7
345561847f8eSopenharmony_ci   * @deprecated since 11
345661847f8eSopenharmony_ci   * @useinstead image.ImagePropertyOptions
345761847f8eSopenharmony_ci   */
345861847f8eSopenharmony_ci  /**
345961847f8eSopenharmony_ci   * Describes image properties.
346061847f8eSopenharmony_ci   *
346161847f8eSopenharmony_ci   * @typedef GetImagePropertyOptions
346261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
346361847f8eSopenharmony_ci   * @crossplatform
346461847f8eSopenharmony_ci   * @since 10
346561847f8eSopenharmony_ci   * @deprecated since 11
346661847f8eSopenharmony_ci   * @useinstead image.ImagePropertyOptions
346761847f8eSopenharmony_ci   */
346861847f8eSopenharmony_ci  interface GetImagePropertyOptions {
346961847f8eSopenharmony_ci    /**
347061847f8eSopenharmony_ci     * Index of an image.
347161847f8eSopenharmony_ci     *
347261847f8eSopenharmony_ci     * @type { ?number }
347361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
347461847f8eSopenharmony_ci     * @since 7
347561847f8eSopenharmony_ci     * @deprecated since 11
347661847f8eSopenharmony_ci     * @useinstead image.ImagePropertyOptions#index
347761847f8eSopenharmony_ci     */
347861847f8eSopenharmony_ci    /**
347961847f8eSopenharmony_ci     * Index of an image.
348061847f8eSopenharmony_ci     *
348161847f8eSopenharmony_ci     * @type { ?number }
348261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
348361847f8eSopenharmony_ci     * @crossplatform
348461847f8eSopenharmony_ci     * @since 10
348561847f8eSopenharmony_ci     * @deprecated since 11
348661847f8eSopenharmony_ci     * @useinstead image.ImagePropertyOptions#index
348761847f8eSopenharmony_ci     */
348861847f8eSopenharmony_ci    index?: number;
348961847f8eSopenharmony_ci
349061847f8eSopenharmony_ci    /**
349161847f8eSopenharmony_ci     * Default property value.
349261847f8eSopenharmony_ci     *
349361847f8eSopenharmony_ci     * @type { ?string }
349461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
349561847f8eSopenharmony_ci     * @since 7
349661847f8eSopenharmony_ci     * @deprecated since 11
349761847f8eSopenharmony_ci     * @useinstead image.ImagePropertyOptions#defaultValue
349861847f8eSopenharmony_ci     */
349961847f8eSopenharmony_ci    /**
350061847f8eSopenharmony_ci     * Default property value.
350161847f8eSopenharmony_ci     *
350261847f8eSopenharmony_ci     * @type { ?string }
350361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
350461847f8eSopenharmony_ci     * @crossplatform
350561847f8eSopenharmony_ci     * @since 10
350661847f8eSopenharmony_ci     * @deprecated since 11
350761847f8eSopenharmony_ci     * @useinstead image.ImagePropertyOptions#defaultValue
350861847f8eSopenharmony_ci     */
350961847f8eSopenharmony_ci    defaultValue?: string;
351061847f8eSopenharmony_ci  }
351161847f8eSopenharmony_ci
351261847f8eSopenharmony_ci  /**
351361847f8eSopenharmony_ci   * Describes image properties.
351461847f8eSopenharmony_ci   *
351561847f8eSopenharmony_ci   * @typedef ImagePropertyOptions
351661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
351761847f8eSopenharmony_ci   * @crossplatform
351861847f8eSopenharmony_ci   * @since 11
351961847f8eSopenharmony_ci   */
352061847f8eSopenharmony_ci  interface ImagePropertyOptions {
352161847f8eSopenharmony_ci    /**
352261847f8eSopenharmony_ci     * Index of an image.
352361847f8eSopenharmony_ci     *
352461847f8eSopenharmony_ci     * @type { ?number }
352561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
352661847f8eSopenharmony_ci     * @crossplatform
352761847f8eSopenharmony_ci     * @since 11
352861847f8eSopenharmony_ci     */
352961847f8eSopenharmony_ci    index?: number;
353061847f8eSopenharmony_ci
353161847f8eSopenharmony_ci    /**
353261847f8eSopenharmony_ci     * Default property value.
353361847f8eSopenharmony_ci     *
353461847f8eSopenharmony_ci     * @type { ?string }
353561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
353661847f8eSopenharmony_ci     * @crossplatform
353761847f8eSopenharmony_ci     * @since 11
353861847f8eSopenharmony_ci     */
353961847f8eSopenharmony_ci    defaultValue?: string;
354061847f8eSopenharmony_ci  }
354161847f8eSopenharmony_ci
354261847f8eSopenharmony_ci  /**
354361847f8eSopenharmony_ci   * Describes image decoding parameters.
354461847f8eSopenharmony_ci   *
354561847f8eSopenharmony_ci   * @typedef DecodingOptions
354661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
354761847f8eSopenharmony_ci   * @since 7
354861847f8eSopenharmony_ci   */
354961847f8eSopenharmony_ci  /**
355061847f8eSopenharmony_ci   * Describes image decoding parameters.
355161847f8eSopenharmony_ci   *
355261847f8eSopenharmony_ci   * @typedef DecodingOptions
355361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
355461847f8eSopenharmony_ci   * @crossplatform
355561847f8eSopenharmony_ci   * @since 10
355661847f8eSopenharmony_ci   */
355761847f8eSopenharmony_ci  /**
355861847f8eSopenharmony_ci   * Describes image decoding parameters.
355961847f8eSopenharmony_ci   *
356061847f8eSopenharmony_ci   * @typedef DecodingOptions
356161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
356261847f8eSopenharmony_ci   * @crossplatform
356361847f8eSopenharmony_ci   * @atomicservice
356461847f8eSopenharmony_ci   * @since 11
356561847f8eSopenharmony_ci   */
356661847f8eSopenharmony_ci  /**
356761847f8eSopenharmony_ci   * Describes image decoding parameters.
356861847f8eSopenharmony_ci   *
356961847f8eSopenharmony_ci   * @typedef DecodingOptions
357061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
357161847f8eSopenharmony_ci   * @crossplatform
357261847f8eSopenharmony_ci   * @form
357361847f8eSopenharmony_ci   * @atomicservice
357461847f8eSopenharmony_ci   * @since 12
357561847f8eSopenharmony_ci   */
357661847f8eSopenharmony_ci  interface DecodingOptions {
357761847f8eSopenharmony_ci    /**
357861847f8eSopenharmony_ci     * Number of image frames.
357961847f8eSopenharmony_ci     *
358061847f8eSopenharmony_ci     * @type { ?number }
358161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
358261847f8eSopenharmony_ci     * @since 7
358361847f8eSopenharmony_ci     */
358461847f8eSopenharmony_ci    /**
358561847f8eSopenharmony_ci     * Number of image frames.
358661847f8eSopenharmony_ci     *
358761847f8eSopenharmony_ci     * @type { ?number }
358861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
358961847f8eSopenharmony_ci     * @crossplatform
359061847f8eSopenharmony_ci     * @since 10
359161847f8eSopenharmony_ci     */
359261847f8eSopenharmony_ci    /**
359361847f8eSopenharmony_ci     * Number of image frames.
359461847f8eSopenharmony_ci     *
359561847f8eSopenharmony_ci     * @type { ?number }
359661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
359761847f8eSopenharmony_ci     * @crossplatform
359861847f8eSopenharmony_ci     * @atomicservice
359961847f8eSopenharmony_ci     * @since 11
360061847f8eSopenharmony_ci     */
360161847f8eSopenharmony_ci    /**
360261847f8eSopenharmony_ci     * Number of image frames.
360361847f8eSopenharmony_ci     *
360461847f8eSopenharmony_ci     * @type { ?number }
360561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
360661847f8eSopenharmony_ci     * @crossplatform
360761847f8eSopenharmony_ci     * @form
360861847f8eSopenharmony_ci     * @atomicservice
360961847f8eSopenharmony_ci     * @since 12
361061847f8eSopenharmony_ci     */
361161847f8eSopenharmony_ci    index?: number;
361261847f8eSopenharmony_ci
361361847f8eSopenharmony_ci    /**
361461847f8eSopenharmony_ci     * Sampling ratio of the image pixel map.
361561847f8eSopenharmony_ci     *
361661847f8eSopenharmony_ci     * @type { ?number }
361761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
361861847f8eSopenharmony_ci     * @since 7
361961847f8eSopenharmony_ci     */
362061847f8eSopenharmony_ci    /**
362161847f8eSopenharmony_ci     * Sampling ratio of the image pixel map.
362261847f8eSopenharmony_ci     *
362361847f8eSopenharmony_ci     * @type { ?number }
362461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
362561847f8eSopenharmony_ci     * @crossplatform
362661847f8eSopenharmony_ci     * @since 10
362761847f8eSopenharmony_ci     */
362861847f8eSopenharmony_ci    /**
362961847f8eSopenharmony_ci     * Sampling ratio of the image pixel map.
363061847f8eSopenharmony_ci     *
363161847f8eSopenharmony_ci     * @type { ?number }
363261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
363361847f8eSopenharmony_ci     * @crossplatform
363461847f8eSopenharmony_ci     * @atomicservice
363561847f8eSopenharmony_ci     * @since 11
363661847f8eSopenharmony_ci     */
363761847f8eSopenharmony_ci    /**
363861847f8eSopenharmony_ci     * Sampling ratio of the image pixel map.
363961847f8eSopenharmony_ci     *
364061847f8eSopenharmony_ci     * @type { ?number }
364161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
364261847f8eSopenharmony_ci     * @crossplatform
364361847f8eSopenharmony_ci     * @form
364461847f8eSopenharmony_ci     * @atomicservice
364561847f8eSopenharmony_ci     * @since 12
364661847f8eSopenharmony_ci     */
364761847f8eSopenharmony_ci    sampleSize?: number;
364861847f8eSopenharmony_ci
364961847f8eSopenharmony_ci    /**
365061847f8eSopenharmony_ci     * Rotation angle of the image pixel map. The value ranges from 0 to 360.
365161847f8eSopenharmony_ci     *
365261847f8eSopenharmony_ci     * @type { ?number }
365361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
365461847f8eSopenharmony_ci     * @since 7
365561847f8eSopenharmony_ci     */
365661847f8eSopenharmony_ci    /**
365761847f8eSopenharmony_ci     * Rotation angle of the image pixel map. The value ranges from 0 to 360.
365861847f8eSopenharmony_ci     *
365961847f8eSopenharmony_ci     * @type { ?number }
366061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
366161847f8eSopenharmony_ci     * @crossplatform
366261847f8eSopenharmony_ci     * @since 10
366361847f8eSopenharmony_ci     */
366461847f8eSopenharmony_ci    /**
366561847f8eSopenharmony_ci     * Rotation angle of the image pixel map. The value ranges from 0 to 360.
366661847f8eSopenharmony_ci     *
366761847f8eSopenharmony_ci     * @type { ?number }
366861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
366961847f8eSopenharmony_ci     * @crossplatform
367061847f8eSopenharmony_ci     * @atomicservice
367161847f8eSopenharmony_ci     * @since 11
367261847f8eSopenharmony_ci     */
367361847f8eSopenharmony_ci    /**
367461847f8eSopenharmony_ci     * Rotation angle of the image pixel map. The value ranges from 0 to 360.
367561847f8eSopenharmony_ci     *
367661847f8eSopenharmony_ci     * @type { ?number }
367761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
367861847f8eSopenharmony_ci     * @crossplatform
367961847f8eSopenharmony_ci     * @form
368061847f8eSopenharmony_ci     * @atomicservice
368161847f8eSopenharmony_ci     * @since 12
368261847f8eSopenharmony_ci     */
368361847f8eSopenharmony_ci    rotate?: number;
368461847f8eSopenharmony_ci
368561847f8eSopenharmony_ci    /**
368661847f8eSopenharmony_ci     * Whether the image pixel map is editable.
368761847f8eSopenharmony_ci     *
368861847f8eSopenharmony_ci     * @type { ?boolean }
368961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
369061847f8eSopenharmony_ci     * @since 7
369161847f8eSopenharmony_ci     */
369261847f8eSopenharmony_ci    /**
369361847f8eSopenharmony_ci     * Whether the image pixel map is editable.
369461847f8eSopenharmony_ci     *
369561847f8eSopenharmony_ci     * @type { ?boolean }
369661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
369761847f8eSopenharmony_ci     * @crossplatform
369861847f8eSopenharmony_ci     * @since 10
369961847f8eSopenharmony_ci     */
370061847f8eSopenharmony_ci    /**
370161847f8eSopenharmony_ci     * Whether the image pixel map is editable.
370261847f8eSopenharmony_ci     *
370361847f8eSopenharmony_ci     * @type { ?boolean }
370461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
370561847f8eSopenharmony_ci     * @crossplatform
370661847f8eSopenharmony_ci     * @atomicservice
370761847f8eSopenharmony_ci     * @since 11
370861847f8eSopenharmony_ci     */
370961847f8eSopenharmony_ci    /**
371061847f8eSopenharmony_ci     * Whether the image pixel map is editable.
371161847f8eSopenharmony_ci     *
371261847f8eSopenharmony_ci     * @type { ?boolean }
371361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
371461847f8eSopenharmony_ci     * @crossplatform
371561847f8eSopenharmony_ci     * @form
371661847f8eSopenharmony_ci     * @atomicservice
371761847f8eSopenharmony_ci     * @since 12
371861847f8eSopenharmony_ci     */
371961847f8eSopenharmony_ci    editable?: boolean;
372061847f8eSopenharmony_ci
372161847f8eSopenharmony_ci    /**
372261847f8eSopenharmony_ci     * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded
372361847f8eSopenharmony_ci     * based on the original image size.
372461847f8eSopenharmony_ci     *
372561847f8eSopenharmony_ci     * @type { ?Size }
372661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
372761847f8eSopenharmony_ci     * @since 7
372861847f8eSopenharmony_ci     */
372961847f8eSopenharmony_ci    /**
373061847f8eSopenharmony_ci     * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded
373161847f8eSopenharmony_ci     * based on the original image size.
373261847f8eSopenharmony_ci     *
373361847f8eSopenharmony_ci     * @type { ?Size }
373461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
373561847f8eSopenharmony_ci     * @crossplatform
373661847f8eSopenharmony_ci     * @since 10
373761847f8eSopenharmony_ci     */
373861847f8eSopenharmony_ci    /**
373961847f8eSopenharmony_ci     * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded
374061847f8eSopenharmony_ci     * based on the original image size.
374161847f8eSopenharmony_ci     *
374261847f8eSopenharmony_ci     * @type { ?Size }
374361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
374461847f8eSopenharmony_ci     * @crossplatform
374561847f8eSopenharmony_ci     * @atomicservice
374661847f8eSopenharmony_ci     * @since 11
374761847f8eSopenharmony_ci     */
374861847f8eSopenharmony_ci    /**
374961847f8eSopenharmony_ci     * Width and height of the image pixel map. The value (0, 0) indicates that the pixels are decoded
375061847f8eSopenharmony_ci     * based on the original image size.
375161847f8eSopenharmony_ci     *
375261847f8eSopenharmony_ci     * @type { ?Size }
375361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
375461847f8eSopenharmony_ci     * @crossplatform
375561847f8eSopenharmony_ci     * @form
375661847f8eSopenharmony_ci     * @atomicservice
375761847f8eSopenharmony_ci     * @since 12
375861847f8eSopenharmony_ci     */
375961847f8eSopenharmony_ci    desiredSize?: Size;
376061847f8eSopenharmony_ci
376161847f8eSopenharmony_ci    /**
376261847f8eSopenharmony_ci     * Cropping region of the image pixel map.
376361847f8eSopenharmony_ci     *
376461847f8eSopenharmony_ci     * @type { ?Region }
376561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
376661847f8eSopenharmony_ci     * @since 7
376761847f8eSopenharmony_ci     */
376861847f8eSopenharmony_ci    /**
376961847f8eSopenharmony_ci     * Cropping region of the image pixel map.
377061847f8eSopenharmony_ci     *
377161847f8eSopenharmony_ci     * @type { ?Region }
377261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
377361847f8eSopenharmony_ci     * @crossplatform
377461847f8eSopenharmony_ci     * @since 10
377561847f8eSopenharmony_ci     */
377661847f8eSopenharmony_ci    /**
377761847f8eSopenharmony_ci     * Cropping region of the image pixel map.
377861847f8eSopenharmony_ci     *
377961847f8eSopenharmony_ci     * @type { ?Region }
378061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
378161847f8eSopenharmony_ci     * @crossplatform
378261847f8eSopenharmony_ci     * @atomicservice
378361847f8eSopenharmony_ci     * @since 11
378461847f8eSopenharmony_ci     */
378561847f8eSopenharmony_ci    /**
378661847f8eSopenharmony_ci     * Cropping region of the image pixel map.
378761847f8eSopenharmony_ci     *
378861847f8eSopenharmony_ci     * @type { ?Region }
378961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
379061847f8eSopenharmony_ci     * @crossplatform
379161847f8eSopenharmony_ci     * @form
379261847f8eSopenharmony_ci     * @atomicservice
379361847f8eSopenharmony_ci     * @since 12
379461847f8eSopenharmony_ci     */
379561847f8eSopenharmony_ci    desiredRegion?: Region;
379661847f8eSopenharmony_ci
379761847f8eSopenharmony_ci    /**
379861847f8eSopenharmony_ci     * Data format of the image pixel map.
379961847f8eSopenharmony_ci     *
380061847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
380161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
380261847f8eSopenharmony_ci     * @since 7
380361847f8eSopenharmony_ci     */
380461847f8eSopenharmony_ci    /**
380561847f8eSopenharmony_ci     * Data format of the image pixel map.
380661847f8eSopenharmony_ci     *
380761847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
380861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
380961847f8eSopenharmony_ci     * @crossplatform
381061847f8eSopenharmony_ci     * @since 10
381161847f8eSopenharmony_ci     */
381261847f8eSopenharmony_ci    /**
381361847f8eSopenharmony_ci     * Data format of the image pixel map.
381461847f8eSopenharmony_ci     *
381561847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
381661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
381761847f8eSopenharmony_ci     * @crossplatform
381861847f8eSopenharmony_ci     * @atomicservice
381961847f8eSopenharmony_ci     * @since 11
382061847f8eSopenharmony_ci     */
382161847f8eSopenharmony_ci    /**
382261847f8eSopenharmony_ci     * Data format of the image pixel map.
382361847f8eSopenharmony_ci     *
382461847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
382561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
382661847f8eSopenharmony_ci     * @crossplatform
382761847f8eSopenharmony_ci     * @form
382861847f8eSopenharmony_ci     * @atomicservice
382961847f8eSopenharmony_ci     * @since 12
383061847f8eSopenharmony_ci     */
383161847f8eSopenharmony_ci    desiredPixelFormat?: PixelMapFormat;
383261847f8eSopenharmony_ci
383361847f8eSopenharmony_ci    /**
383461847f8eSopenharmony_ci     * The density for image pixel map.
383561847f8eSopenharmony_ci     *
383661847f8eSopenharmony_ci     * @type { ?number }
383761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
383861847f8eSopenharmony_ci     * @since 9
383961847f8eSopenharmony_ci     */
384061847f8eSopenharmony_ci    /**
384161847f8eSopenharmony_ci     * The density for image pixel map.
384261847f8eSopenharmony_ci     *
384361847f8eSopenharmony_ci     * @type { ?number }
384461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
384561847f8eSopenharmony_ci     * @crossplatform
384661847f8eSopenharmony_ci     * @since 10
384761847f8eSopenharmony_ci     */
384861847f8eSopenharmony_ci    /**
384961847f8eSopenharmony_ci     * The density for image pixel map.
385061847f8eSopenharmony_ci     *
385161847f8eSopenharmony_ci     * @type { ?number }
385261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
385361847f8eSopenharmony_ci     * @crossplatform
385461847f8eSopenharmony_ci     * @atomicservice
385561847f8eSopenharmony_ci     * @since 11
385661847f8eSopenharmony_ci     */
385761847f8eSopenharmony_ci    /**
385861847f8eSopenharmony_ci     * The density for image pixel map.
385961847f8eSopenharmony_ci     *
386061847f8eSopenharmony_ci     * @type { ?number }
386161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
386261847f8eSopenharmony_ci     * @crossplatform
386361847f8eSopenharmony_ci     * @form
386461847f8eSopenharmony_ci     * @atomicservice
386561847f8eSopenharmony_ci     * @since 12
386661847f8eSopenharmony_ci     */
386761847f8eSopenharmony_ci    fitDensity?: number;
386861847f8eSopenharmony_ci
386961847f8eSopenharmony_ci    /**
387061847f8eSopenharmony_ci     * Color space of the image pixel map.
387161847f8eSopenharmony_ci     *
387261847f8eSopenharmony_ci     * @type { ?colorSpaceManager.ColorSpaceManager }
387361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
387461847f8eSopenharmony_ci     * @crossplatform
387561847f8eSopenharmony_ci     * @since 11
387661847f8eSopenharmony_ci     */
387761847f8eSopenharmony_ci    desiredColorSpace?: colorSpaceManager.ColorSpaceManager;
387861847f8eSopenharmony_ci    
387961847f8eSopenharmony_ci    /**
388061847f8eSopenharmony_ci     * The desired dynamic range of the image pixelmap.
388161847f8eSopenharmony_ci     *
388261847f8eSopenharmony_ci     * @type { ?DecodingDynamicRange }
388361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
388461847f8eSopenharmony_ci     * @since 12
388561847f8eSopenharmony_ci     */
388661847f8eSopenharmony_ci    desiredDynamicRange?: DecodingDynamicRange;
388761847f8eSopenharmony_ci
388861847f8eSopenharmony_ci    /**
388961847f8eSopenharmony_ci     * Resolution Quality of the image.
389061847f8eSopenharmony_ci     *
389161847f8eSopenharmony_ci     * @type { ?ResolutionQuality }
389261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
389361847f8eSopenharmony_ci     * @systemapi
389461847f8eSopenharmony_ci     * @since 12
389561847f8eSopenharmony_ci     */
389661847f8eSopenharmony_ci    resolutionQuality?: ResolutionQuality;
389761847f8eSopenharmony_ci  }
389861847f8eSopenharmony_ci
389961847f8eSopenharmony_ci  /**
390061847f8eSopenharmony_ci   * Describes image color components.
390161847f8eSopenharmony_ci   *
390261847f8eSopenharmony_ci   * @typedef Component
390361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
390461847f8eSopenharmony_ci   * @since 9
390561847f8eSopenharmony_ci   */
390661847f8eSopenharmony_ci  interface Component {
390761847f8eSopenharmony_ci    /**
390861847f8eSopenharmony_ci     * Component type.
390961847f8eSopenharmony_ci     *
391061847f8eSopenharmony_ci     * @type { ComponentType }
391161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
391261847f8eSopenharmony_ci     * @since 9
391361847f8eSopenharmony_ci     */
391461847f8eSopenharmony_ci    readonly componentType: ComponentType;
391561847f8eSopenharmony_ci
391661847f8eSopenharmony_ci    /**
391761847f8eSopenharmony_ci     * Row stride.
391861847f8eSopenharmony_ci     *
391961847f8eSopenharmony_ci     * @type { number }
392061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
392161847f8eSopenharmony_ci     * @since 9
392261847f8eSopenharmony_ci     */
392361847f8eSopenharmony_ci    readonly rowStride: number;
392461847f8eSopenharmony_ci
392561847f8eSopenharmony_ci    /**
392661847f8eSopenharmony_ci     * Pixel stride.
392761847f8eSopenharmony_ci     *
392861847f8eSopenharmony_ci     * @type { number }
392961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
393061847f8eSopenharmony_ci     * @since 9
393161847f8eSopenharmony_ci     */
393261847f8eSopenharmony_ci    readonly pixelStride: number;
393361847f8eSopenharmony_ci
393461847f8eSopenharmony_ci    /**
393561847f8eSopenharmony_ci     * Component buffer.
393661847f8eSopenharmony_ci     *
393761847f8eSopenharmony_ci     * @type { ArrayBuffer }
393861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
393961847f8eSopenharmony_ci     * @since 9
394061847f8eSopenharmony_ci     */
394161847f8eSopenharmony_ci    readonly byteBuffer: ArrayBuffer;
394261847f8eSopenharmony_ci  }
394361847f8eSopenharmony_ci
394461847f8eSopenharmony_ci  /**
394561847f8eSopenharmony_ci   * Initialization options for pixelmap.
394661847f8eSopenharmony_ci   *
394761847f8eSopenharmony_ci   * @typedef InitializationOptions
394861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
394961847f8eSopenharmony_ci   * @since 8
395061847f8eSopenharmony_ci   */
395161847f8eSopenharmony_ci  /**
395261847f8eSopenharmony_ci   * Initialization options for pixelmap.
395361847f8eSopenharmony_ci   *
395461847f8eSopenharmony_ci   * @typedef InitializationOptions
395561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
395661847f8eSopenharmony_ci   * @crossplatform
395761847f8eSopenharmony_ci   * @since 10
395861847f8eSopenharmony_ci   */
395961847f8eSopenharmony_ci  /**
396061847f8eSopenharmony_ci   * Initialization options for pixelmap.
396161847f8eSopenharmony_ci   *
396261847f8eSopenharmony_ci   * @typedef InitializationOptions
396361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
396461847f8eSopenharmony_ci   * @crossplatform
396561847f8eSopenharmony_ci   * @atomicservice
396661847f8eSopenharmony_ci   * @since 11
396761847f8eSopenharmony_ci   */
396861847f8eSopenharmony_ci  /**
396961847f8eSopenharmony_ci   * Initialization options for pixelmap.
397061847f8eSopenharmony_ci   *
397161847f8eSopenharmony_ci   * @typedef InitializationOptions
397261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
397361847f8eSopenharmony_ci   * @crossplatform
397461847f8eSopenharmony_ci   * @form
397561847f8eSopenharmony_ci   * @atomicservice
397661847f8eSopenharmony_ci   * @since 12
397761847f8eSopenharmony_ci   */
397861847f8eSopenharmony_ci  interface InitializationOptions {
397961847f8eSopenharmony_ci    /**
398061847f8eSopenharmony_ci     * PixelMap size.
398161847f8eSopenharmony_ci     *
398261847f8eSopenharmony_ci     * @type { Size }
398361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
398461847f8eSopenharmony_ci     * @since 8
398561847f8eSopenharmony_ci     */
398661847f8eSopenharmony_ci    /**
398761847f8eSopenharmony_ci     * PixelMap size.
398861847f8eSopenharmony_ci     *
398961847f8eSopenharmony_ci     * @type { Size }
399061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
399161847f8eSopenharmony_ci     * @crossplatform
399261847f8eSopenharmony_ci     * @since 10
399361847f8eSopenharmony_ci     */
399461847f8eSopenharmony_ci    /**
399561847f8eSopenharmony_ci     * PixelMap size.
399661847f8eSopenharmony_ci     *
399761847f8eSopenharmony_ci     * @type { Size }
399861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
399961847f8eSopenharmony_ci     * @crossplatform
400061847f8eSopenharmony_ci     * @atomicservice
400161847f8eSopenharmony_ci     * @since 11
400261847f8eSopenharmony_ci     */
400361847f8eSopenharmony_ci    /**
400461847f8eSopenharmony_ci     * PixelMap size.
400561847f8eSopenharmony_ci     *
400661847f8eSopenharmony_ci     * @type { Size }
400761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
400861847f8eSopenharmony_ci     * @crossplatform
400961847f8eSopenharmony_ci     * @form
401061847f8eSopenharmony_ci     * @atomicservice
401161847f8eSopenharmony_ci     * @since 12
401261847f8eSopenharmony_ci     */
401361847f8eSopenharmony_ci    size: Size;
401461847f8eSopenharmony_ci
401561847f8eSopenharmony_ci    /**
401661847f8eSopenharmony_ci     * PixelMap source format.
401761847f8eSopenharmony_ci     *
401861847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
401961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
402061847f8eSopenharmony_ci     * @since 12
402161847f8eSopenharmony_ci     */
402261847f8eSopenharmony_ci    srcPixelFormat?: PixelMapFormat;
402361847f8eSopenharmony_ci
402461847f8eSopenharmony_ci    /**
402561847f8eSopenharmony_ci     * PixelMap expected format.
402661847f8eSopenharmony_ci     *
402761847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
402861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
402961847f8eSopenharmony_ci     * @since 8
403061847f8eSopenharmony_ci     */
403161847f8eSopenharmony_ci    /**
403261847f8eSopenharmony_ci     * PixelMap expected format.
403361847f8eSopenharmony_ci     *
403461847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
403561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
403661847f8eSopenharmony_ci     * @crossplatform
403761847f8eSopenharmony_ci     * @since 10
403861847f8eSopenharmony_ci     */
403961847f8eSopenharmony_ci    /**
404061847f8eSopenharmony_ci     * PixelMap expected format.
404161847f8eSopenharmony_ci     *
404261847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
404361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
404461847f8eSopenharmony_ci     * @crossplatform
404561847f8eSopenharmony_ci     * @atomicservice
404661847f8eSopenharmony_ci     * @since 11
404761847f8eSopenharmony_ci     */
404861847f8eSopenharmony_ci    /**
404961847f8eSopenharmony_ci     * PixelMap expected format.
405061847f8eSopenharmony_ci     *
405161847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
405261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
405361847f8eSopenharmony_ci     * @crossplatform
405461847f8eSopenharmony_ci     * @form
405561847f8eSopenharmony_ci     * @atomicservice
405661847f8eSopenharmony_ci     * @since 12
405761847f8eSopenharmony_ci     */
405861847f8eSopenharmony_ci    pixelFormat?: PixelMapFormat;
405961847f8eSopenharmony_ci
406061847f8eSopenharmony_ci    /**
406161847f8eSopenharmony_ci     * Editable or not.
406261847f8eSopenharmony_ci     *
406361847f8eSopenharmony_ci     * @type { ?boolean }
406461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
406561847f8eSopenharmony_ci     * @since 8
406661847f8eSopenharmony_ci     */
406761847f8eSopenharmony_ci    /**
406861847f8eSopenharmony_ci     * Editable or not.
406961847f8eSopenharmony_ci     *
407061847f8eSopenharmony_ci     * @type { ?boolean }
407161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
407261847f8eSopenharmony_ci     * @crossplatform
407361847f8eSopenharmony_ci     * @since 10
407461847f8eSopenharmony_ci     */
407561847f8eSopenharmony_ci    /**
407661847f8eSopenharmony_ci     * Editable or not.
407761847f8eSopenharmony_ci     *
407861847f8eSopenharmony_ci     * @type { ?boolean }
407961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
408061847f8eSopenharmony_ci     * @crossplatform
408161847f8eSopenharmony_ci     * @atomicservice
408261847f8eSopenharmony_ci     * @since 11
408361847f8eSopenharmony_ci     */
408461847f8eSopenharmony_ci    /**
408561847f8eSopenharmony_ci     * Editable or not.
408661847f8eSopenharmony_ci     *
408761847f8eSopenharmony_ci     * @type { ?boolean }
408861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
408961847f8eSopenharmony_ci     * @crossplatform
409061847f8eSopenharmony_ci     * @form
409161847f8eSopenharmony_ci     * @atomicservice
409261847f8eSopenharmony_ci     * @since 12
409361847f8eSopenharmony_ci     */
409461847f8eSopenharmony_ci    editable?: boolean;
409561847f8eSopenharmony_ci
409661847f8eSopenharmony_ci    /**
409761847f8eSopenharmony_ci     * PixelMap expected alpha type.
409861847f8eSopenharmony_ci     *
409961847f8eSopenharmony_ci     * @type { ?AlphaType }
410061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
410161847f8eSopenharmony_ci     * @since 9
410261847f8eSopenharmony_ci     */
410361847f8eSopenharmony_ci    /**
410461847f8eSopenharmony_ci     * PixelMap expected alpha type.
410561847f8eSopenharmony_ci     *
410661847f8eSopenharmony_ci     * @type { ?AlphaType }
410761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
410861847f8eSopenharmony_ci     * @crossplatform
410961847f8eSopenharmony_ci     * @since 10
411061847f8eSopenharmony_ci     */
411161847f8eSopenharmony_ci    /**
411261847f8eSopenharmony_ci     * PixelMap expected alpha type.
411361847f8eSopenharmony_ci     *
411461847f8eSopenharmony_ci     * @type { ?AlphaType }
411561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
411661847f8eSopenharmony_ci     * @crossplatform
411761847f8eSopenharmony_ci     * @atomicservice
411861847f8eSopenharmony_ci     * @since 11
411961847f8eSopenharmony_ci     */
412061847f8eSopenharmony_ci    /**
412161847f8eSopenharmony_ci     * PixelMap expected alpha type.
412261847f8eSopenharmony_ci     *
412361847f8eSopenharmony_ci     * @type { ?AlphaType }
412461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
412561847f8eSopenharmony_ci     * @crossplatform
412661847f8eSopenharmony_ci     * @form
412761847f8eSopenharmony_ci     * @atomicservice
412861847f8eSopenharmony_ci     * @since 12
412961847f8eSopenharmony_ci     */
413061847f8eSopenharmony_ci    alphaType?: AlphaType;
413161847f8eSopenharmony_ci
413261847f8eSopenharmony_ci    /**
413361847f8eSopenharmony_ci     * PixelMap expected scaling effect.
413461847f8eSopenharmony_ci     *
413561847f8eSopenharmony_ci     * @type { ?ScaleMode }
413661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
413761847f8eSopenharmony_ci     * @since 9
413861847f8eSopenharmony_ci     */
413961847f8eSopenharmony_ci    /**
414061847f8eSopenharmony_ci     * PixelMap expected scaling effect.
414161847f8eSopenharmony_ci     *
414261847f8eSopenharmony_ci     * @type { ?ScaleMode }
414361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
414461847f8eSopenharmony_ci     * @crossplatform
414561847f8eSopenharmony_ci     * @since 10
414661847f8eSopenharmony_ci     */
414761847f8eSopenharmony_ci    /**
414861847f8eSopenharmony_ci     * PixelMap expected scaling effect.
414961847f8eSopenharmony_ci     *
415061847f8eSopenharmony_ci     * @type { ?ScaleMode }
415161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
415261847f8eSopenharmony_ci     * @crossplatform
415361847f8eSopenharmony_ci     * @atomicservice
415461847f8eSopenharmony_ci     * @since 11
415561847f8eSopenharmony_ci     */
415661847f8eSopenharmony_ci    /**
415761847f8eSopenharmony_ci     * PixelMap expected scaling effect.
415861847f8eSopenharmony_ci     *
415961847f8eSopenharmony_ci     * @type { ?ScaleMode }
416061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
416161847f8eSopenharmony_ci     * @crossplatform
416261847f8eSopenharmony_ci     * @form
416361847f8eSopenharmony_ci     * @atomicservice
416461847f8eSopenharmony_ci     * @since 12
416561847f8eSopenharmony_ci     */
416661847f8eSopenharmony_ci    scaleMode?: ScaleMode;
416761847f8eSopenharmony_ci  }
416861847f8eSopenharmony_ci
416961847f8eSopenharmony_ci  /**
417061847f8eSopenharmony_ci   * Initialization options for ImageSource.
417161847f8eSopenharmony_ci   *
417261847f8eSopenharmony_ci   * @typedef SourceOptions
417361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
417461847f8eSopenharmony_ci   * @since 9
417561847f8eSopenharmony_ci   */
417661847f8eSopenharmony_ci  /**
417761847f8eSopenharmony_ci   * Initialization options for ImageSource.
417861847f8eSopenharmony_ci   *
417961847f8eSopenharmony_ci   * @typedef SourceOptions
418061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
418161847f8eSopenharmony_ci   * @crossplatform
418261847f8eSopenharmony_ci   * @since 10
418361847f8eSopenharmony_ci   */
418461847f8eSopenharmony_ci  /**
418561847f8eSopenharmony_ci   * Initialization options for ImageSource.
418661847f8eSopenharmony_ci   *
418761847f8eSopenharmony_ci   * @typedef SourceOptions
418861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
418961847f8eSopenharmony_ci   * @crossplatform
419061847f8eSopenharmony_ci   * @atomicservice
419161847f8eSopenharmony_ci   * @since 11
419261847f8eSopenharmony_ci   */
419361847f8eSopenharmony_ci  /**
419461847f8eSopenharmony_ci   * Initialization options for ImageSource.
419561847f8eSopenharmony_ci   *
419661847f8eSopenharmony_ci   * @typedef SourceOptions
419761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
419861847f8eSopenharmony_ci   * @crossplatform
419961847f8eSopenharmony_ci   * @form
420061847f8eSopenharmony_ci   * @atomicservice
420161847f8eSopenharmony_ci   * @since 12
420261847f8eSopenharmony_ci   */
420361847f8eSopenharmony_ci  interface SourceOptions {
420461847f8eSopenharmony_ci    /**
420561847f8eSopenharmony_ci     * The density for ImageSource.
420661847f8eSopenharmony_ci     *
420761847f8eSopenharmony_ci     * @type { number }
420861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
420961847f8eSopenharmony_ci     * @since 9
421061847f8eSopenharmony_ci     */
421161847f8eSopenharmony_ci    /**
421261847f8eSopenharmony_ci     * The density for ImageSource.
421361847f8eSopenharmony_ci     *
421461847f8eSopenharmony_ci     * @type { number }
421561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
421661847f8eSopenharmony_ci     * @crossplatform
421761847f8eSopenharmony_ci     * @since 10
421861847f8eSopenharmony_ci     */
421961847f8eSopenharmony_ci    /**
422061847f8eSopenharmony_ci     * The density for ImageSource.
422161847f8eSopenharmony_ci     *
422261847f8eSopenharmony_ci     * @type { number }
422361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
422461847f8eSopenharmony_ci     * @crossplatform
422561847f8eSopenharmony_ci     * @atomicservice
422661847f8eSopenharmony_ci     * @since 11
422761847f8eSopenharmony_ci     */
422861847f8eSopenharmony_ci    /**
422961847f8eSopenharmony_ci     * The density for ImageSource.
423061847f8eSopenharmony_ci     *
423161847f8eSopenharmony_ci     * @type { number }
423261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
423361847f8eSopenharmony_ci     * @crossplatform
423461847f8eSopenharmony_ci     * @form
423561847f8eSopenharmony_ci     * @atomicservice
423661847f8eSopenharmony_ci     * @since 12
423761847f8eSopenharmony_ci     */
423861847f8eSopenharmony_ci    sourceDensity: number;
423961847f8eSopenharmony_ci
424061847f8eSopenharmony_ci    /**
424161847f8eSopenharmony_ci     * PixelMap expected format.
424261847f8eSopenharmony_ci     *
424361847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
424461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
424561847f8eSopenharmony_ci     * @since 9
424661847f8eSopenharmony_ci     */
424761847f8eSopenharmony_ci    /**
424861847f8eSopenharmony_ci     * PixelMap expected format.
424961847f8eSopenharmony_ci     *
425061847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
425161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
425261847f8eSopenharmony_ci     * @crossplatform
425361847f8eSopenharmony_ci     * @since 10
425461847f8eSopenharmony_ci     */
425561847f8eSopenharmony_ci    /**
425661847f8eSopenharmony_ci     * PixelMap expected format.
425761847f8eSopenharmony_ci     *
425861847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
425961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
426061847f8eSopenharmony_ci     * @crossplatform
426161847f8eSopenharmony_ci     * @atomicservice
426261847f8eSopenharmony_ci     * @since 11
426361847f8eSopenharmony_ci     */
426461847f8eSopenharmony_ci    /**
426561847f8eSopenharmony_ci     * PixelMap expected format.
426661847f8eSopenharmony_ci     *
426761847f8eSopenharmony_ci     * @type { ?PixelMapFormat }
426861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
426961847f8eSopenharmony_ci     * @crossplatform
427061847f8eSopenharmony_ci     * @form
427161847f8eSopenharmony_ci     * @atomicservice
427261847f8eSopenharmony_ci     * @since 12
427361847f8eSopenharmony_ci     */
427461847f8eSopenharmony_ci    sourcePixelFormat?: PixelMapFormat;
427561847f8eSopenharmony_ci
427661847f8eSopenharmony_ci    /**
427761847f8eSopenharmony_ci     * PixelMap size.
427861847f8eSopenharmony_ci     *
427961847f8eSopenharmony_ci     * @type { ?Size }
428061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
428161847f8eSopenharmony_ci     * @since 9
428261847f8eSopenharmony_ci     */
428361847f8eSopenharmony_ci    /**
428461847f8eSopenharmony_ci     * PixelMap size.
428561847f8eSopenharmony_ci     *
428661847f8eSopenharmony_ci     * @type { ?Size }
428761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
428861847f8eSopenharmony_ci     * @crossplatform
428961847f8eSopenharmony_ci     * @since 10
429061847f8eSopenharmony_ci     */
429161847f8eSopenharmony_ci    /**
429261847f8eSopenharmony_ci     * PixelMap size.
429361847f8eSopenharmony_ci     *
429461847f8eSopenharmony_ci     * @type { ?Size }
429561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
429661847f8eSopenharmony_ci     * @crossplatform
429761847f8eSopenharmony_ci     * @atomicservice
429861847f8eSopenharmony_ci     * @since 11
429961847f8eSopenharmony_ci     */
430061847f8eSopenharmony_ci    /**
430161847f8eSopenharmony_ci     * PixelMap size.
430261847f8eSopenharmony_ci     *
430361847f8eSopenharmony_ci     * @type { ?Size }
430461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
430561847f8eSopenharmony_ci     * @crossplatform
430661847f8eSopenharmony_ci     * @form
430761847f8eSopenharmony_ci     * @atomicservice
430861847f8eSopenharmony_ci     * @since 12
430961847f8eSopenharmony_ci     */
431061847f8eSopenharmony_ci    sourceSize?: Size;
431161847f8eSopenharmony_ci  }
431261847f8eSopenharmony_ci
431361847f8eSopenharmony_ci  /**
431461847f8eSopenharmony_ci   * Value for HDR_STATIC_METADATA.
431561847f8eSopenharmony_ci   *
431661847f8eSopenharmony_ci   * @typedef HdrStaticMetadata
431761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
431861847f8eSopenharmony_ci   * @since 12
431961847f8eSopenharmony_ci   */
432061847f8eSopenharmony_ci  interface HdrStaticMetadata {
432161847f8eSopenharmony_ci    /**
432261847f8eSopenharmony_ci     * The X-coordinate of the primary colors. The length of the array is three. Store in the order of r, g, b.
432361847f8eSopenharmony_ci     *
432461847f8eSopenharmony_ci     * @type { Array<number> }
432561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
432661847f8eSopenharmony_ci     * @since 12
432761847f8eSopenharmony_ci     */
432861847f8eSopenharmony_ci    displayPrimariesX: Array<number>;
432961847f8eSopenharmony_ci
433061847f8eSopenharmony_ci    /**
433161847f8eSopenharmony_ci     * The Y-coordinate of the primary colors. The length of the array is three. Store in the order of r, g, b.
433261847f8eSopenharmony_ci     *
433361847f8eSopenharmony_ci     * @type { Array<number> }
433461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
433561847f8eSopenharmony_ci     * @since 12
433661847f8eSopenharmony_ci     */
433761847f8eSopenharmony_ci    displayPrimariesY: Array<number>;
433861847f8eSopenharmony_ci
433961847f8eSopenharmony_ci    /**
434061847f8eSopenharmony_ci     * The X-coordinate of the white point value.
434161847f8eSopenharmony_ci     *
434261847f8eSopenharmony_ci     * @type { number }
434361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
434461847f8eSopenharmony_ci     * @since 12
434561847f8eSopenharmony_ci     */
434661847f8eSopenharmony_ci    whitePointX: number;
434761847f8eSopenharmony_ci
434861847f8eSopenharmony_ci    /**
434961847f8eSopenharmony_ci     * The Y-coordinate of the white point value.
435061847f8eSopenharmony_ci     *
435161847f8eSopenharmony_ci     * @type { number }
435261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
435361847f8eSopenharmony_ci     * @since 12
435461847f8eSopenharmony_ci     */
435561847f8eSopenharmony_ci    whitePointY: number;
435661847f8eSopenharmony_ci
435761847f8eSopenharmony_ci    /**
435861847f8eSopenharmony_ci     * Max luminance.
435961847f8eSopenharmony_ci     *
436061847f8eSopenharmony_ci     * @type { number }
436161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
436261847f8eSopenharmony_ci     * @since 12
436361847f8eSopenharmony_ci     */
436461847f8eSopenharmony_ci    maxLuminance: number;
436561847f8eSopenharmony_ci
436661847f8eSopenharmony_ci    /**
436761847f8eSopenharmony_ci     * Min luminance.
436861847f8eSopenharmony_ci     *
436961847f8eSopenharmony_ci     * @type { number }
437061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
437161847f8eSopenharmony_ci     * @since 12
437261847f8eSopenharmony_ci     */
437361847f8eSopenharmony_ci    minLuminance: number;
437461847f8eSopenharmony_ci
437561847f8eSopenharmony_ci    /**
437661847f8eSopenharmony_ci     * Maximum brightness of displayed content.
437761847f8eSopenharmony_ci     *
437861847f8eSopenharmony_ci     * @type { number }
437961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
438061847f8eSopenharmony_ci     * @since 12
438161847f8eSopenharmony_ci     */
438261847f8eSopenharmony_ci    maxContentLightLevel: number;
438361847f8eSopenharmony_ci
438461847f8eSopenharmony_ci    /**
438561847f8eSopenharmony_ci     * Maximum average brightness of displayed content.
438661847f8eSopenharmony_ci     *
438761847f8eSopenharmony_ci     * @type { number }
438861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
438961847f8eSopenharmony_ci     * @since 12
439061847f8eSopenharmony_ci     */
439161847f8eSopenharmony_ci    maxFrameAverageLightLevel: number;
439261847f8eSopenharmony_ci  }
439361847f8eSopenharmony_ci
439461847f8eSopenharmony_ci  /**
439561847f8eSopenharmony_ci   * The per-component metadata.
439661847f8eSopenharmony_ci   *
439761847f8eSopenharmony_ci   * @typedef GainmapChannel
439861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
439961847f8eSopenharmony_ci   * @since 12
440061847f8eSopenharmony_ci   */
440161847f8eSopenharmony_ci  interface GainmapChannel {
440261847f8eSopenharmony_ci    /**
440361847f8eSopenharmony_ci     * The per-component max gain map values.
440461847f8eSopenharmony_ci     *
440561847f8eSopenharmony_ci     * @type { number }
440661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
440761847f8eSopenharmony_ci     * @since 12
440861847f8eSopenharmony_ci     */
440961847f8eSopenharmony_ci    gainmapMax: number;
441061847f8eSopenharmony_ci
441161847f8eSopenharmony_ci    /**
441261847f8eSopenharmony_ci     * The per-component min gain map values.
441361847f8eSopenharmony_ci     *
441461847f8eSopenharmony_ci     * @type { number }
441561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
441661847f8eSopenharmony_ci     * @since 12
441761847f8eSopenharmony_ci     */
441861847f8eSopenharmony_ci    gainmapMin: number;
441961847f8eSopenharmony_ci
442061847f8eSopenharmony_ci    /**
442161847f8eSopenharmony_ci     * The per-component gamma values.
442261847f8eSopenharmony_ci     *
442361847f8eSopenharmony_ci     * @type { number }
442461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
442561847f8eSopenharmony_ci     * @since 12
442661847f8eSopenharmony_ci     */
442761847f8eSopenharmony_ci    gamma: number;
442861847f8eSopenharmony_ci
442961847f8eSopenharmony_ci    /**
443061847f8eSopenharmony_ci     * The per-component baseline offset.
443161847f8eSopenharmony_ci     *
443261847f8eSopenharmony_ci     * @type { number }
443361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
443461847f8eSopenharmony_ci     * @since 12
443561847f8eSopenharmony_ci     */
443661847f8eSopenharmony_ci    baseOffset: number;
443761847f8eSopenharmony_ci
443861847f8eSopenharmony_ci    /**
443961847f8eSopenharmony_ci     * The per-component alternate offset.
444061847f8eSopenharmony_ci     *
444161847f8eSopenharmony_ci     * @type { number }
444261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
444361847f8eSopenharmony_ci     * @since 12
444461847f8eSopenharmony_ci     */
444561847f8eSopenharmony_ci    alternateOffset: number;
444661847f8eSopenharmony_ci  }
444761847f8eSopenharmony_ci
444861847f8eSopenharmony_ci  /**
444961847f8eSopenharmony_ci   * Values for HDR_GAINMAP_METADATA.
445061847f8eSopenharmony_ci   *
445161847f8eSopenharmony_ci   * @typedef HdrGainmapMetadata
445261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
445361847f8eSopenharmony_ci   * @since 12
445461847f8eSopenharmony_ci   */
445561847f8eSopenharmony_ci  interface HdrGainmapMetadata {
445661847f8eSopenharmony_ci    /**
445761847f8eSopenharmony_ci     * The version used by the writer.
445861847f8eSopenharmony_ci     *
445961847f8eSopenharmony_ci     * @type { number }
446061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
446161847f8eSopenharmony_ci     * @since 12
446261847f8eSopenharmony_ci     */
446361847f8eSopenharmony_ci    writerVersion: number;
446461847f8eSopenharmony_ci
446561847f8eSopenharmony_ci    /**
446661847f8eSopenharmony_ci     * The minimum version a parser needs to understand.
446761847f8eSopenharmony_ci     *
446861847f8eSopenharmony_ci     * @type { number }
446961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
447061847f8eSopenharmony_ci     * @since 12
447161847f8eSopenharmony_ci     */
447261847f8eSopenharmony_ci    miniVersion: number;
447361847f8eSopenharmony_ci
447461847f8eSopenharmony_ci    /**
447561847f8eSopenharmony_ci     * The number of gain map channels, with a value of 1 or 3.
447661847f8eSopenharmony_ci     *
447761847f8eSopenharmony_ci     * @type { number }
447861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
447961847f8eSopenharmony_ci     * @since 12
448061847f8eSopenharmony_ci     */
448161847f8eSopenharmony_ci    gainmapChannelCount: number;
448261847f8eSopenharmony_ci
448361847f8eSopenharmony_ci    /**
448461847f8eSopenharmony_ci     * Indicate whether to use the color space of the base image.
448561847f8eSopenharmony_ci     *
448661847f8eSopenharmony_ci     * @type { boolean }
448761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
448861847f8eSopenharmony_ci     * @since 12
448961847f8eSopenharmony_ci     */
449061847f8eSopenharmony_ci    useBaseColorFlag: boolean;
449161847f8eSopenharmony_ci
449261847f8eSopenharmony_ci    /**
449361847f8eSopenharmony_ci     * The baseline hdr headroom.
449461847f8eSopenharmony_ci     *
449561847f8eSopenharmony_ci     * @type { number }
449661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
449761847f8eSopenharmony_ci     * @since 12
449861847f8eSopenharmony_ci     */    
449961847f8eSopenharmony_ci    baseHeadroom: number;
450061847f8eSopenharmony_ci
450161847f8eSopenharmony_ci    /**
450261847f8eSopenharmony_ci     * The alternate hdr headroom.
450361847f8eSopenharmony_ci     *
450461847f8eSopenharmony_ci     * @type { number }
450561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
450661847f8eSopenharmony_ci     * @since 12
450761847f8eSopenharmony_ci     */
450861847f8eSopenharmony_ci    alternateHeadroom: number;
450961847f8eSopenharmony_ci
451061847f8eSopenharmony_ci    /**
451161847f8eSopenharmony_ci     * The per-channel metadata.
451261847f8eSopenharmony_ci     *
451361847f8eSopenharmony_ci     * @type { Array<GainmapChannel> }
451461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
451561847f8eSopenharmony_ci     * @since 12
451661847f8eSopenharmony_ci     */
451761847f8eSopenharmony_ci    channels: Array<GainmapChannel>;
451861847f8eSopenharmony_ci  }
451961847f8eSopenharmony_ci
452061847f8eSopenharmony_ci  /**
452161847f8eSopenharmony_ci   * Defines the hdr metadata value.
452261847f8eSopenharmony_ci   *
452361847f8eSopenharmony_ci   * @typedef {HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata} HdrMetadataValue
452461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
452561847f8eSopenharmony_ci   * @since 12
452661847f8eSopenharmony_ci   */
452761847f8eSopenharmony_ci  type HdrMetadataValue = HdrMetadataType | HdrStaticMetadata | ArrayBuffer | HdrGainmapMetadata;
452861847f8eSopenharmony_ci
452961847f8eSopenharmony_ci  /**
453061847f8eSopenharmony_ci   * Create pixelmap by data buffer.
453161847f8eSopenharmony_ci   *
453261847f8eSopenharmony_ci   * @param { ArrayBuffer } colors The image color buffer.
453361847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
453461847f8eSopenharmony_ci   * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
453561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
453661847f8eSopenharmony_ci   * @since 8
453761847f8eSopenharmony_ci   */
453861847f8eSopenharmony_ci  /**
453961847f8eSopenharmony_ci   * Create pixelmap by data buffer.
454061847f8eSopenharmony_ci   *
454161847f8eSopenharmony_ci   * @param { ArrayBuffer } colors The image color buffer.
454261847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
454361847f8eSopenharmony_ci   * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
454461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
454561847f8eSopenharmony_ci   * @crossplatform
454661847f8eSopenharmony_ci   * @since 10
454761847f8eSopenharmony_ci   */
454861847f8eSopenharmony_ci  function createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback<PixelMap>): void;
454961847f8eSopenharmony_ci
455061847f8eSopenharmony_ci  /**
455161847f8eSopenharmony_ci   * Create pixelmap by data buffer.
455261847f8eSopenharmony_ci   *
455361847f8eSopenharmony_ci   * @param { ArrayBuffer } colors The image color buffer.
455461847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
455561847f8eSopenharmony_ci   * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
455661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
455761847f8eSopenharmony_ci   * @since 8
455861847f8eSopenharmony_ci   */
455961847f8eSopenharmony_ci  /**
456061847f8eSopenharmony_ci   * Create pixelmap by data buffer.
456161847f8eSopenharmony_ci   *
456261847f8eSopenharmony_ci   * @param { ArrayBuffer } colors The image color buffer.
456361847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
456461847f8eSopenharmony_ci   * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
456561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
456661847f8eSopenharmony_ci   * @crossplatform
456761847f8eSopenharmony_ci   * @since 10
456861847f8eSopenharmony_ci   */
456961847f8eSopenharmony_ci  function createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise<PixelMap>;
457061847f8eSopenharmony_ci
457161847f8eSopenharmony_ci  /**
457261847f8eSopenharmony_ci   * Create pixelmap by data buffer.
457361847f8eSopenharmony_ci   *
457461847f8eSopenharmony_ci   * @param { ArrayBuffer } colors The image color buffer.
457561847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
457661847f8eSopenharmony_ci   * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined.
457761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
457861847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
457961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
458061847f8eSopenharmony_ci   * @crossplatform
458161847f8eSopenharmony_ci   * @since 12
458261847f8eSopenharmony_ci   */
458361847f8eSopenharmony_ci  function createPixelMapSync(colors: ArrayBuffer, options: InitializationOptions): PixelMap;
458461847f8eSopenharmony_ci
458561847f8eSopenharmony_ci  /**
458661847f8eSopenharmony_ci   * Create an empty pixelmap.
458761847f8eSopenharmony_ci   *
458861847f8eSopenharmony_ci   * @param { InitializationOptions } options Initialization options for pixelmap.
458961847f8eSopenharmony_ci   * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined.
459061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
459161847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
459261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
459361847f8eSopenharmony_ci   * @crossplatform
459461847f8eSopenharmony_ci   * @since 12
459561847f8eSopenharmony_ci   */
459661847f8eSopenharmony_cifunction createPixelMapSync(options: InitializationOptions): PixelMap;
459761847f8eSopenharmony_ci
459861847f8eSopenharmony_ci  /**
459961847f8eSopenharmony_ci   * Transforms pixelmap from unpremultiplied alpha format to premultiplied alpha format.
460061847f8eSopenharmony_ci   *
460161847f8eSopenharmony_ci   * @param { PixelMap } src The source pixelmap.
460261847f8eSopenharmony_ci   * @param { PixelMap } dst The destination pixelmap.
460361847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback Callback used to return the operation result.
460461847f8eSopenharmony_ci   * If the operation fails, an error message is returned.
460561847f8eSopenharmony_ci   * @throws { BusinessError } 62980103 - The image data is not supported.
460661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
460761847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
460861847f8eSopenharmony_ci   * @throws { BusinessError } 62980246 - Failed to read the pixelMap.
460961847f8eSopenharmony_ci   * @throws { BusinessError } 62980248 - Pixelmap not allow modify.
461061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
461161847f8eSopenharmony_ci   * @crossplatform
461261847f8eSopenharmony_ci   * @since 12
461361847f8eSopenharmony_ci   */
461461847f8eSopenharmony_cifunction createPremultipliedPixelMap(src: PixelMap, dst: PixelMap, callback: AsyncCallback<void>): void;
461561847f8eSopenharmony_ci
461661847f8eSopenharmony_ci  /**
461761847f8eSopenharmony_ci   * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.
461861847f8eSopenharmony_ci   *
461961847f8eSopenharmony_ci   * @param { PixelMap } src The source pixelMap.
462061847f8eSopenharmony_ci   * @param { PixelMap } dst The destination pixelmap.
462161847f8eSopenharmony_ci   * @returns { Promise<void> } A Promise instance used to return the operation result.
462261847f8eSopenharmony_ci   * If the operation fails, an error message is returned.
462361847f8eSopenharmony_ci   * @throws { BusinessError } 62980103 - The image data is not supported.
462461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
462561847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
462661847f8eSopenharmony_ci   * @throws { BusinessError } 62980246 - Failed to read the pixelMap.
462761847f8eSopenharmony_ci   * @throws { BusinessError } 62980248 - Pixelmap not allow modify.
462861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
462961847f8eSopenharmony_ci   * @crossplatform
463061847f8eSopenharmony_ci   * @since 12
463161847f8eSopenharmony_ci   */
463261847f8eSopenharmony_cifunction createPremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise<void>;
463361847f8eSopenharmony_ci
463461847f8eSopenharmony_ci  /**
463561847f8eSopenharmony_ci   * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.
463661847f8eSopenharmony_ci   *
463761847f8eSopenharmony_ci   * @param { PixelMap } src The source pixelmap.
463861847f8eSopenharmony_ci   * @param { PixelMap } dst The destination pixelmap.
463961847f8eSopenharmony_ci   * @param { AsyncCallback<void> } callback Callback used to return the operation result.
464061847f8eSopenharmony_ci   * If the operation fails, an error message is returned.
464161847f8eSopenharmony_ci   * @throws { BusinessError } 62980103 - The image data is not supported.
464261847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
464361847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
464461847f8eSopenharmony_ci   * @throws { BusinessError } 62980246 - Failed to read the pixelMap.
464561847f8eSopenharmony_ci   * @throws { BusinessError } 62980248 - Pixelmap not allow modify.
464661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
464761847f8eSopenharmony_ci   * @crossplatform
464861847f8eSopenharmony_ci   * @since 12
464961847f8eSopenharmony_ci   */
465061847f8eSopenharmony_cifunction createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap, callback: AsyncCallback<void>): void;
465161847f8eSopenharmony_ci
465261847f8eSopenharmony_ci  /**
465361847f8eSopenharmony_ci   * Transforms pixelmap from premultiplied alpha format to unpremultiplied alpha format.
465461847f8eSopenharmony_ci   *
465561847f8eSopenharmony_ci   * @param { PixelMap } src The source pixelmap.
465661847f8eSopenharmony_ci   * @param { PixelMap } dst The destination pixelmap.
465761847f8eSopenharmony_ci   * @returns { Promise<void> } A Promise instance used to return the operation result.
465861847f8eSopenharmony_ci   * If the operation fails, an error message is returned.
465961847f8eSopenharmony_ci   * @throws { BusinessError } 62980103 - The image data is not supported.
466061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
466161847f8eSopenharmony_ci   * 2.Incorrect parameter types. 3.Parameter verification failed.
466261847f8eSopenharmony_ci   * @throws { BusinessError } 62980246 - Failed to read the pixelMap.
466361847f8eSopenharmony_ci   * @throws { BusinessError } 62980248 - Pixelmap not allow modify.
466461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
466561847f8eSopenharmony_ci   * @crossplatform
466661847f8eSopenharmony_ci   * @since 12
466761847f8eSopenharmony_ci   */
466861847f8eSopenharmony_cifunction createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise<void>;
466961847f8eSopenharmony_ci
467061847f8eSopenharmony_ci  /**
467161847f8eSopenharmony_ci   * Creates a PixelMap object based on MessageSequence parameter.
467261847f8eSopenharmony_ci   *
467361847f8eSopenharmony_ci   * @param { rpc.MessageSequence } sequence - rpc.MessageSequence parameter.
467461847f8eSopenharmony_ci   * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.
467561847f8eSopenharmony_ci   * @throws { BusinessError } 62980096 - Operation failed.
467661847f8eSopenharmony_ci   * @throws { BusinessError } 62980097 - IPC error.
467761847f8eSopenharmony_ci   * @throws { BusinessError } 62980115 - Invalid input parameter.
467861847f8eSopenharmony_ci   * @throws { BusinessError } 62980105 - Failed to get the data.
467961847f8eSopenharmony_ci   * @throws { BusinessError } 62980177 - Abnormal API environment.
468061847f8eSopenharmony_ci   * @throws { BusinessError } 62980178 - Failed to create the PixelMap.
468161847f8eSopenharmony_ci   * @throws { BusinessError } 62980179 - Abnormal buffer size.
468261847f8eSopenharmony_ci   * @throws { BusinessError } 62980180 - FD mapping failed.
468361847f8eSopenharmony_ci   * @throws { BusinessError } 62980246 - Failed to read the PixelMap.
468461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
468561847f8eSopenharmony_ci   * @since 11
468661847f8eSopenharmony_ci   */
468761847f8eSopenharmony_ci  function createPixelMapFromParcel(sequence: rpc.MessageSequence): PixelMap;
468861847f8eSopenharmony_ci
468961847f8eSopenharmony_ci  /**
469061847f8eSopenharmony_ci   * Creates a PixelMap object from surface id.
469161847f8eSopenharmony_ci   *
469261847f8eSopenharmony_ci   * @param { string } surfaceId - surface id.
469361847f8eSopenharmony_ci   * @param { Region } region - The region to surface.
469461847f8eSopenharmony_ci   * @returns { Promise<PixelMap> } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.
469561847f8eSopenharmony_ci   * @throws { BusinessError } 62980115 - If the image parameter invalid.
469661847f8eSopenharmony_ci   * @throws { BusinessError } 62980105 - Failed to get the data.
469761847f8eSopenharmony_ci   * @throws { BusinessError } 62980178 - Failed to create the PixelMap.
469861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
469961847f8eSopenharmony_ci   * @since 11
470061847f8eSopenharmony_ci   */
470161847f8eSopenharmony_ci  function createPixelMapFromSurface(surfaceId: string, region: Region): Promise<PixelMap>;
470261847f8eSopenharmony_ci
470361847f8eSopenharmony_ci  /**
470461847f8eSopenharmony_ci   * Creates a PixelMap object from surface id.
470561847f8eSopenharmony_ci   *
470661847f8eSopenharmony_ci   * @param { string } surfaceId - surface id.
470761847f8eSopenharmony_ci   * @param { Region } region - The region to surface.
470861847f8eSopenharmony_ci   * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, an exception will be thrown.
470961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
471061847f8eSopenharmony_ci   *     2.Incorrect parameter types. 3.Parameter verification failed.
471161847f8eSopenharmony_ci   * @throws { BusinessError } 62980105 - Failed to get the data.
471261847f8eSopenharmony_ci   * @throws { BusinessError } 62980178 - Failed to create the PixelMap.
471361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
471461847f8eSopenharmony_ci   * @since 12
471561847f8eSopenharmony_ci   */
471661847f8eSopenharmony_ci  function createPixelMapFromSurfaceSync(surfaceId: string, region: Region): PixelMap;
471761847f8eSopenharmony_ci
471861847f8eSopenharmony_ci  /**
471961847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
472061847f8eSopenharmony_ci   *
472161847f8eSopenharmony_ci   * @param { string } uri Image source URI.
472261847f8eSopenharmony_ci   * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns null otherwise.
472361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
472461847f8eSopenharmony_ci   * @since 6
472561847f8eSopenharmony_ci   */
472661847f8eSopenharmony_ci  /**
472761847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
472861847f8eSopenharmony_ci   *
472961847f8eSopenharmony_ci   * @param { string } uri Image source URI.
473061847f8eSopenharmony_ci   * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns null otherwise.
473161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
473261847f8eSopenharmony_ci   * @crossplatform
473361847f8eSopenharmony_ci   * @since 10
473461847f8eSopenharmony_ci   */
473561847f8eSopenharmony_ci  /**
473661847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
473761847f8eSopenharmony_ci   *
473861847f8eSopenharmony_ci   * @param { string } uri Image source URI.
473961847f8eSopenharmony_ci   * @returns { ImageSource } returns the ImageSource instance if the operation is successful; returns null otherwise.
474061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
474161847f8eSopenharmony_ci   * @crossplatform
474261847f8eSopenharmony_ci   * @atomicservice
474361847f8eSopenharmony_ci   * @since 11
474461847f8eSopenharmony_ci   */
474561847f8eSopenharmony_ci  function createImageSource(uri: string): ImageSource;
474661847f8eSopenharmony_ci
474761847f8eSopenharmony_ci  /**
474861847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
474961847f8eSopenharmony_ci   *
475061847f8eSopenharmony_ci   * @param { string } uri Image source URI.
475161847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
475261847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
475361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
475461847f8eSopenharmony_ci   * @since 9
475561847f8eSopenharmony_ci   */
475661847f8eSopenharmony_ci  /**
475761847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
475861847f8eSopenharmony_ci   *
475961847f8eSopenharmony_ci   * @param { string } uri Image source URI.
476061847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
476161847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
476261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
476361847f8eSopenharmony_ci   * @crossplatform
476461847f8eSopenharmony_ci   * @since 10
476561847f8eSopenharmony_ci   */
476661847f8eSopenharmony_ci  /**
476761847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
476861847f8eSopenharmony_ci   *
476961847f8eSopenharmony_ci   * @param { string } uri Image source URI.
477061847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
477161847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
477261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
477361847f8eSopenharmony_ci   * @crossplatform
477461847f8eSopenharmony_ci   * @atomicservice
477561847f8eSopenharmony_ci   * @since 11
477661847f8eSopenharmony_ci   */
477761847f8eSopenharmony_ci  /**
477861847f8eSopenharmony_ci   * Creates an ImageSource instance based on the URI.
477961847f8eSopenharmony_ci   *
478061847f8eSopenharmony_ci   * @param { string } uri Image source URI.
478161847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
478261847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
478361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
478461847f8eSopenharmony_ci   * @crossplatform
478561847f8eSopenharmony_ci   * @form
478661847f8eSopenharmony_ci   * @atomicservice
478761847f8eSopenharmony_ci   * @since 12
478861847f8eSopenharmony_ci   */
478961847f8eSopenharmony_ci  function createImageSource(uri: string, options: SourceOptions): ImageSource;
479061847f8eSopenharmony_ci
479161847f8eSopenharmony_ci  /**
479261847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
479361847f8eSopenharmony_ci   *
479461847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
479561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
479661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
479761847f8eSopenharmony_ci   * @since 7
479861847f8eSopenharmony_ci   */
479961847f8eSopenharmony_ci  /**
480061847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
480161847f8eSopenharmony_ci   *
480261847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
480361847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
480461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
480561847f8eSopenharmony_ci   * @crossplatform
480661847f8eSopenharmony_ci   * @since 10
480761847f8eSopenharmony_ci   */
480861847f8eSopenharmony_ci  /**
480961847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
481061847f8eSopenharmony_ci   *
481161847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
481261847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
481361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
481461847f8eSopenharmony_ci   * @crossplatform
481561847f8eSopenharmony_ci   * @atomicservice
481661847f8eSopenharmony_ci   * @since 11
481761847f8eSopenharmony_ci   */
481861847f8eSopenharmony_ci  function createImageSource(fd: number): ImageSource;
481961847f8eSopenharmony_ci
482061847f8eSopenharmony_ci  /**
482161847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
482261847f8eSopenharmony_ci   *
482361847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
482461847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
482561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
482661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
482761847f8eSopenharmony_ci   * @since 9
482861847f8eSopenharmony_ci   */
482961847f8eSopenharmony_ci  /**
483061847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
483161847f8eSopenharmony_ci   *
483261847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
483361847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
483461847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
483561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
483661847f8eSopenharmony_ci   * @crossplatform
483761847f8eSopenharmony_ci   * @since 10
483861847f8eSopenharmony_ci   */
483961847f8eSopenharmony_ci  /**
484061847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
484161847f8eSopenharmony_ci   *
484261847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
484361847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
484461847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
484561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
484661847f8eSopenharmony_ci   * @crossplatform
484761847f8eSopenharmony_ci   * @atomicservice
484861847f8eSopenharmony_ci   * @since 11
484961847f8eSopenharmony_ci   */
485061847f8eSopenharmony_ci  /**
485161847f8eSopenharmony_ci   * Creates an ImageSource instance based on the file descriptor.
485261847f8eSopenharmony_ci   *
485361847f8eSopenharmony_ci   * @param { number } fd ID of a file descriptor.
485461847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
485561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
485661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
485761847f8eSopenharmony_ci   * @crossplatform
485861847f8eSopenharmony_ci   * @form
485961847f8eSopenharmony_ci   * @atomicservice
486061847f8eSopenharmony_ci   * @since 12
486161847f8eSopenharmony_ci   */
486261847f8eSopenharmony_ci  function createImageSource(fd: number, options: SourceOptions): ImageSource;
486361847f8eSopenharmony_ci
486461847f8eSopenharmony_ci  /**
486561847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
486661847f8eSopenharmony_ci   *
486761847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
486861847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
486961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
487061847f8eSopenharmony_ci   * @since 9
487161847f8eSopenharmony_ci   */
487261847f8eSopenharmony_ci  /**
487361847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
487461847f8eSopenharmony_ci   *
487561847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
487661847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
487761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
487861847f8eSopenharmony_ci   * @crossplatform
487961847f8eSopenharmony_ci   * @since 10
488061847f8eSopenharmony_ci   */
488161847f8eSopenharmony_ci  /**
488261847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
488361847f8eSopenharmony_ci   *
488461847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
488561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
488661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
488761847f8eSopenharmony_ci   * @crossplatform
488861847f8eSopenharmony_ci   * @atomicservice
488961847f8eSopenharmony_ci   * @since 11
489061847f8eSopenharmony_ci   */
489161847f8eSopenharmony_ci  /**
489261847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
489361847f8eSopenharmony_ci   *
489461847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
489561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
489661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
489761847f8eSopenharmony_ci   * @crossplatform
489861847f8eSopenharmony_ci   * @form
489961847f8eSopenharmony_ci   * @atomicservice
490061847f8eSopenharmony_ci   * @since 12
490161847f8eSopenharmony_ci   */
490261847f8eSopenharmony_ci  function createImageSource(buf: ArrayBuffer): ImageSource;
490361847f8eSopenharmony_ci
490461847f8eSopenharmony_ci  /**
490561847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
490661847f8eSopenharmony_ci   *
490761847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
490861847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
490961847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
491061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
491161847f8eSopenharmony_ci   * @since 9
491261847f8eSopenharmony_ci   */
491361847f8eSopenharmony_ci  /**
491461847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
491561847f8eSopenharmony_ci   *
491661847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
491761847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
491861847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
491961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
492061847f8eSopenharmony_ci   * @crossplatform
492161847f8eSopenharmony_ci   * @since 10
492261847f8eSopenharmony_ci   */
492361847f8eSopenharmony_ci  /**
492461847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
492561847f8eSopenharmony_ci   *
492661847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
492761847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
492861847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
492961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
493061847f8eSopenharmony_ci   * @crossplatform
493161847f8eSopenharmony_ci   * @atomicservice
493261847f8eSopenharmony_ci   * @since 11
493361847f8eSopenharmony_ci   */
493461847f8eSopenharmony_ci  /**
493561847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer.
493661847f8eSopenharmony_ci   *
493761847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
493861847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
493961847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
494061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
494161847f8eSopenharmony_ci   * @crossplatform
494261847f8eSopenharmony_ci   * @form
494361847f8eSopenharmony_ci   * @atomicservice
494461847f8eSopenharmony_ci   * @since 12
494561847f8eSopenharmony_ci   */
494661847f8eSopenharmony_ci  function createImageSource(buf: ArrayBuffer, options: SourceOptions): ImageSource;
494761847f8eSopenharmony_ci
494861847f8eSopenharmony_ci  /**
494961847f8eSopenharmony_ci   * Creates an ImageSource instance based on the raw file descriptor.
495061847f8eSopenharmony_ci   *
495161847f8eSopenharmony_ci   * @param { resourceManager.RawFileDescriptor } rawfile The raw file descriptor of the image.
495261847f8eSopenharmony_ci   * @param { SourceOptions } options The config of Image source.
495361847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
495461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
495561847f8eSopenharmony_ci   * @crossplatform
495661847f8eSopenharmony_ci   * @atomicservice
495761847f8eSopenharmony_ci   * @since 11
495861847f8eSopenharmony_ci   */
495961847f8eSopenharmony_ci  function createImageSource(rawfile: resourceManager.RawFileDescriptor, options?: SourceOptions): ImageSource;
496061847f8eSopenharmony_ci
496161847f8eSopenharmony_ci  /**
496261847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer in incremental.
496361847f8eSopenharmony_ci   *
496461847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
496561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
496661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
496761847f8eSopenharmony_ci   * @since 9
496861847f8eSopenharmony_ci   */
496961847f8eSopenharmony_ci  /**
497061847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer in incremental.
497161847f8eSopenharmony_ci   *
497261847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
497361847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
497461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
497561847f8eSopenharmony_ci   * @crossplatform
497661847f8eSopenharmony_ci   * @since 10
497761847f8eSopenharmony_ci   */
497861847f8eSopenharmony_ci  function CreateIncrementalSource(buf: ArrayBuffer): ImageSource;
497961847f8eSopenharmony_ci
498061847f8eSopenharmony_ci  /**
498161847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer in incremental.
498261847f8eSopenharmony_ci   *
498361847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
498461847f8eSopenharmony_ci   * @param { SourceOptions } options The config of source.
498561847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
498661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
498761847f8eSopenharmony_ci   * @since 9
498861847f8eSopenharmony_ci   */
498961847f8eSopenharmony_ci  /**
499061847f8eSopenharmony_ci   * Creates an ImageSource instance based on the buffer in incremental.
499161847f8eSopenharmony_ci   *
499261847f8eSopenharmony_ci   * @param { ArrayBuffer } buf The buffer of the image.
499361847f8eSopenharmony_ci   * @param { SourceOptions } options The config of source.
499461847f8eSopenharmony_ci   * @returns { ImageSource } Returns the ImageSource instance if the operation is successful; returns null otherwise.
499561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
499661847f8eSopenharmony_ci   * @crossplatform
499761847f8eSopenharmony_ci   * @since 10
499861847f8eSopenharmony_ci   */
499961847f8eSopenharmony_ci  function CreateIncrementalSource(buf: ArrayBuffer, options?: SourceOptions): ImageSource;
500061847f8eSopenharmony_ci
500161847f8eSopenharmony_ci  /**
500261847f8eSopenharmony_ci   * Creates an ImagePacker instance.
500361847f8eSopenharmony_ci   *
500461847f8eSopenharmony_ci   * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.
500561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
500661847f8eSopenharmony_ci   * @since 6
500761847f8eSopenharmony_ci   */
500861847f8eSopenharmony_ci  /**
500961847f8eSopenharmony_ci   * Creates an ImagePacker instance.
501061847f8eSopenharmony_ci   *
501161847f8eSopenharmony_ci   * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.
501261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
501361847f8eSopenharmony_ci   * @crossplatform
501461847f8eSopenharmony_ci   * @since 10
501561847f8eSopenharmony_ci   */
501661847f8eSopenharmony_ci  /**
501761847f8eSopenharmony_ci   * Creates an ImagePacker instance.
501861847f8eSopenharmony_ci   *
501961847f8eSopenharmony_ci   * @returns { ImagePacker } Returns the ImagePacker instance if the operation is successful; returns null otherwise.
502061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
502161847f8eSopenharmony_ci   * @crossplatform
502261847f8eSopenharmony_ci   * @atomicservice
502361847f8eSopenharmony_ci   * @since 11
502461847f8eSopenharmony_ci   */
502561847f8eSopenharmony_ci  function createImagePacker(): ImagePacker;
502661847f8eSopenharmony_ci
502761847f8eSopenharmony_ci  /**
502861847f8eSopenharmony_ci   * Creates an ImageReceiver instance.
502961847f8eSopenharmony_ci   *
503061847f8eSopenharmony_ci   * @param { number } width The default width in pixels of the Images that this receiver will produce.
503161847f8eSopenharmony_ci   * @param { number } height The default height in pixels of the Images that this receiver will produce.
503261847f8eSopenharmony_ci   * @param { number } format The format of the Image that this receiver will produce. This must be one of the
503361847f8eSopenharmony_ci   *            {@link ImageFormat} constants.
503461847f8eSopenharmony_ci   * @param { number } capacity The maximum number of images the user will want to access simultaneously.
503561847f8eSopenharmony_ci   * @returns { ImageReceiver } Returns the ImageReceiver instance if the operation is successful; returns null otherwise.
503661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageReceiver
503761847f8eSopenharmony_ci   * @since 9
503861847f8eSopenharmony_ci   * @deprecated since 11
503961847f8eSopenharmony_ci   * @useinstead image#createImageReceiver
504061847f8eSopenharmony_ci   */
504161847f8eSopenharmony_ci  function createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver;
504261847f8eSopenharmony_ci
504361847f8eSopenharmony_ci  /**
504461847f8eSopenharmony_ci   * Creates an ImageReceiver instance.
504561847f8eSopenharmony_ci   *
504661847f8eSopenharmony_ci   * @param { Size } size - The default {@link Size} in pixels of the Images that this receiver will produce.
504761847f8eSopenharmony_ci   * @param { ImageFormat } format - The format of the Image that this receiver will produce. This must be one of the
504861847f8eSopenharmony_ci   *            {@link ImageFormat} constants.
504961847f8eSopenharmony_ci   * @param { number } capacity - The maximum number of images the user will want to access simultaneously.
505061847f8eSopenharmony_ci   * @returns { ImageReceiver } Returns the ImageReceiver instance if the operation is successful; returns null otherwise.
505161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
505261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageReceiver
505361847f8eSopenharmony_ci   * @since 11
505461847f8eSopenharmony_ci   */
505561847f8eSopenharmony_ci  function createImageReceiver(size: Size, format: ImageFormat, capacity: number): ImageReceiver;
505661847f8eSopenharmony_ci
505761847f8eSopenharmony_ci  /**
505861847f8eSopenharmony_ci   * Creates an ImageCreator instance.
505961847f8eSopenharmony_ci   *
506061847f8eSopenharmony_ci   * @param { number } width The default width in pixels of the Images that this creator will produce.
506161847f8eSopenharmony_ci   * @param { number } height The default height in pixels of the Images that this creator will produce.
506261847f8eSopenharmony_ci   * @param { number } format The format of the Image that this creator will produce. This must be one of the
506361847f8eSopenharmony_ci   *            {@link ImageFormat} constants.
506461847f8eSopenharmony_ci   * @param { number } capacity The maximum number of images the user will want to access simultaneously.
506561847f8eSopenharmony_ci   * @returns { ImageCreator } Returns the ImageCreator instance if the operation is successful; returns null otherwise.
506661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageCreator
506761847f8eSopenharmony_ci   * @since 9
506861847f8eSopenharmony_ci   * @deprecated since 11
506961847f8eSopenharmony_ci   * @useinstead image#createImageCreator
507061847f8eSopenharmony_ci   */
507161847f8eSopenharmony_ci  function createImageCreator(width: number, height: number, format: number, capacity: number): ImageCreator;
507261847f8eSopenharmony_ci
507361847f8eSopenharmony_ci  /**
507461847f8eSopenharmony_ci   * Creates an ImageCreator instance.
507561847f8eSopenharmony_ci   *
507661847f8eSopenharmony_ci   * @param { Size } size - The default {@link Size} in pixels of the Images that this creator will produce.
507761847f8eSopenharmony_ci   * @param { ImageFormat } format - The format of the Image that this creator will produce. This must be one of the
507861847f8eSopenharmony_ci   *            {@link ImageFormat} constants.
507961847f8eSopenharmony_ci   * @param { number } capacity - The maximum number of images the user will want to access simultaneously.
508061847f8eSopenharmony_ci   * @returns { ImageCreator } Returns the ImageCreator instance if the operation is successful; returns null otherwise.
508161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
508261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageCreator
508361847f8eSopenharmony_ci   * @since 11
508461847f8eSopenharmony_ci   */
508561847f8eSopenharmony_ci  function createImageCreator(size: Size, format: ImageFormat, capacity: number): ImageCreator;
508661847f8eSopenharmony_ci  /**
508761847f8eSopenharmony_ci   * PixelMap instance.
508861847f8eSopenharmony_ci   *
508961847f8eSopenharmony_ci   * @typedef PixelMap
509061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
509161847f8eSopenharmony_ci   * @since 7
509261847f8eSopenharmony_ci   */
509361847f8eSopenharmony_ci  /**
509461847f8eSopenharmony_ci   * PixelMap instance.
509561847f8eSopenharmony_ci   *
509661847f8eSopenharmony_ci   * @typedef PixelMap
509761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
509861847f8eSopenharmony_ci   * @crossplatform
509961847f8eSopenharmony_ci   * @since 10
510061847f8eSopenharmony_ci   */
510161847f8eSopenharmony_ci  /**
510261847f8eSopenharmony_ci   * PixelMap instance.
510361847f8eSopenharmony_ci   *
510461847f8eSopenharmony_ci   * @typedef PixelMap
510561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
510661847f8eSopenharmony_ci   * @crossplatform
510761847f8eSopenharmony_ci   * @atomicservice
510861847f8eSopenharmony_ci   * @since 11
510961847f8eSopenharmony_ci   */
511061847f8eSopenharmony_ci  /**
511161847f8eSopenharmony_ci   * PixelMap instance.
511261847f8eSopenharmony_ci   *
511361847f8eSopenharmony_ci   * @typedef PixelMap
511461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
511561847f8eSopenharmony_ci   * @crossplatform
511661847f8eSopenharmony_ci   * @form
511761847f8eSopenharmony_ci   * @atomicservice
511861847f8eSopenharmony_ci   * @since 12
511961847f8eSopenharmony_ci   */
512061847f8eSopenharmony_ci  interface PixelMap {
512161847f8eSopenharmony_ci    /**
512261847f8eSopenharmony_ci     * Whether the image pixel map can be edited.
512361847f8eSopenharmony_ci     *
512461847f8eSopenharmony_ci     * @type { boolean }
512561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
512661847f8eSopenharmony_ci     * @since 7
512761847f8eSopenharmony_ci     */
512861847f8eSopenharmony_ci    /**
512961847f8eSopenharmony_ci     * Whether the image pixel map can be edited.
513061847f8eSopenharmony_ci     *
513161847f8eSopenharmony_ci     * @type { boolean }
513261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
513361847f8eSopenharmony_ci     * @crossplatform
513461847f8eSopenharmony_ci     * @since 10
513561847f8eSopenharmony_ci     */
513661847f8eSopenharmony_ci    /**
513761847f8eSopenharmony_ci     * Whether the image pixel map can be edited.
513861847f8eSopenharmony_ci     *
513961847f8eSopenharmony_ci     * @type { boolean }
514061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
514161847f8eSopenharmony_ci     * @crossplatform
514261847f8eSopenharmony_ci     * @atomicservice
514361847f8eSopenharmony_ci     * @since 11
514461847f8eSopenharmony_ci     */
514561847f8eSopenharmony_ci    /**
514661847f8eSopenharmony_ci     * Whether the image pixel map can be edited.
514761847f8eSopenharmony_ci     *
514861847f8eSopenharmony_ci     * @type { boolean }
514961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
515061847f8eSopenharmony_ci     * @crossplatform
515161847f8eSopenharmony_ci     * @form
515261847f8eSopenharmony_ci     * @atomicservice
515361847f8eSopenharmony_ci     * @since 12
515461847f8eSopenharmony_ci     */
515561847f8eSopenharmony_ci    readonly isEditable: boolean;
515661847f8eSopenharmony_ci
515761847f8eSopenharmony_ci    /**
515861847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
515961847f8eSopenharmony_ci     * a promise to return the result.
516061847f8eSopenharmony_ci     *
516161847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
516261847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
516361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
516461847f8eSopenharmony_ci     * @since 7
516561847f8eSopenharmony_ci     */
516661847f8eSopenharmony_ci    /**
516761847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
516861847f8eSopenharmony_ci     * a promise to return the result.
516961847f8eSopenharmony_ci     *
517061847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
517161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
517261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
517361847f8eSopenharmony_ci     * @crossplatform
517461847f8eSopenharmony_ci     * @since 10
517561847f8eSopenharmony_ci     */
517661847f8eSopenharmony_ci    /**
517761847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
517861847f8eSopenharmony_ci     * a promise to return the result.
517961847f8eSopenharmony_ci     *
518061847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
518161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
518261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
518361847f8eSopenharmony_ci     * @crossplatform
518461847f8eSopenharmony_ci     * @atomicservice
518561847f8eSopenharmony_ci     * @since 11
518661847f8eSopenharmony_ci     */
518761847f8eSopenharmony_ci    /**
518861847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
518961847f8eSopenharmony_ci     * a promise to return the result.
519061847f8eSopenharmony_ci     *
519161847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
519261847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
519361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
519461847f8eSopenharmony_ci     * @crossplatform
519561847f8eSopenharmony_ci     * @form
519661847f8eSopenharmony_ci     * @atomicservice
519761847f8eSopenharmony_ci     * @since 12
519861847f8eSopenharmony_ci     */
519961847f8eSopenharmony_ci    readPixelsToBuffer(dst: ArrayBuffer): Promise<void>;
520061847f8eSopenharmony_ci
520161847f8eSopenharmony_ci    /**
520261847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
520361847f8eSopenharmony_ci     * a callback to return the result.
520461847f8eSopenharmony_ci     *
520561847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
520661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
520761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
520861847f8eSopenharmony_ci     * @since 7
520961847f8eSopenharmony_ci     */
521061847f8eSopenharmony_ci    /**
521161847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
521261847f8eSopenharmony_ci     * a callback to return the result.
521361847f8eSopenharmony_ci     *
521461847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
521561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
521661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
521761847f8eSopenharmony_ci     * @crossplatform
521861847f8eSopenharmony_ci     * @since 10
521961847f8eSopenharmony_ci     */
522061847f8eSopenharmony_ci    /**
522161847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
522261847f8eSopenharmony_ci     * a callback to return the result.
522361847f8eSopenharmony_ci     *
522461847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
522561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
522661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
522761847f8eSopenharmony_ci     * @crossplatform
522861847f8eSopenharmony_ci     * @atomicservice
522961847f8eSopenharmony_ci     * @since 11
523061847f8eSopenharmony_ci     */
523161847f8eSopenharmony_ci    /**
523261847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
523361847f8eSopenharmony_ci     * a callback to return the result.
523461847f8eSopenharmony_ci     *
523561847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
523661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
523761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
523861847f8eSopenharmony_ci     * @crossplatform
523961847f8eSopenharmony_ci     * @form
524061847f8eSopenharmony_ci     * @atomicservice
524161847f8eSopenharmony_ci     * @since 12
524261847f8eSopenharmony_ci     */
524361847f8eSopenharmony_ci    readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback<void>): void;
524461847f8eSopenharmony_ci
524561847f8eSopenharmony_ci    /**
524661847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer.
524761847f8eSopenharmony_ci     *
524861847f8eSopenharmony_ci     * @param { ArrayBuffer } dst A buffer to which the image pixel map data will be written.
524961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
525061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
525161847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
525261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
525361847f8eSopenharmony_ci     * @crossplatform
525461847f8eSopenharmony_ci     * @form
525561847f8eSopenharmony_ci     * @atomicservice
525661847f8eSopenharmony_ci     * @since 12
525761847f8eSopenharmony_ci     */
525861847f8eSopenharmony_ci    readPixelsToBufferSync(dst: ArrayBuffer): void;
525961847f8eSopenharmony_ci
526061847f8eSopenharmony_ci    /**
526161847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a promise to return the data read.
526261847f8eSopenharmony_ci     *
526361847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
526461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
526561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
526661847f8eSopenharmony_ci     * @since 7
526761847f8eSopenharmony_ci     */
526861847f8eSopenharmony_ci    /**
526961847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a promise to return the data read.
527061847f8eSopenharmony_ci     *
527161847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
527261847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
527361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
527461847f8eSopenharmony_ci     * @crossplatform
527561847f8eSopenharmony_ci     * @since 10
527661847f8eSopenharmony_ci     */
527761847f8eSopenharmony_ci    /**
527861847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a promise to return the data read.
527961847f8eSopenharmony_ci     *
528061847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
528161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
528261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
528361847f8eSopenharmony_ci     * @crossplatform
528461847f8eSopenharmony_ci     * @atomicservice
528561847f8eSopenharmony_ci     * @since 11
528661847f8eSopenharmony_ci     */
528761847f8eSopenharmony_ci    /**
528861847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a promise to return the data read.
528961847f8eSopenharmony_ci     *
529061847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
529161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
529261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
529361847f8eSopenharmony_ci     * @crossplatform
529461847f8eSopenharmony_ci     * @form
529561847f8eSopenharmony_ci     * @atomicservice
529661847f8eSopenharmony_ci     * @since 12
529761847f8eSopenharmony_ci     */
529861847f8eSopenharmony_ci    readPixels(area: PositionArea): Promise<void>;
529961847f8eSopenharmony_ci
530061847f8eSopenharmony_ci    /**
530161847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a callback to return the data read.
530261847f8eSopenharmony_ci     *
530361847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
530461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
530561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
530661847f8eSopenharmony_ci     * @since 7
530761847f8eSopenharmony_ci     */
530861847f8eSopenharmony_ci    /**
530961847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a callback to return the data read.
531061847f8eSopenharmony_ci     *
531161847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
531261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
531361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
531461847f8eSopenharmony_ci     * @crossplatform
531561847f8eSopenharmony_ci     * @since 10
531661847f8eSopenharmony_ci     */
531761847f8eSopenharmony_ci    /**
531861847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a callback to return the data read.
531961847f8eSopenharmony_ci     *
532061847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
532161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
532261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
532361847f8eSopenharmony_ci     * @crossplatform
532461847f8eSopenharmony_ci     * @atomicservice
532561847f8eSopenharmony_ci     * @since 11
532661847f8eSopenharmony_ci     */
532761847f8eSopenharmony_ci    /**
532861847f8eSopenharmony_ci     * Reads image pixel map data in an area. This method uses a callback to return the data read.
532961847f8eSopenharmony_ci     *
533061847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
533161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
533261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
533361847f8eSopenharmony_ci     * @crossplatform
533461847f8eSopenharmony_ci     * @form
533561847f8eSopenharmony_ci     * @atomicservice
533661847f8eSopenharmony_ci     * @since 12
533761847f8eSopenharmony_ci     */
533861847f8eSopenharmony_ci    readPixels(area: PositionArea, callback: AsyncCallback<void>): void;
533961847f8eSopenharmony_ci
534061847f8eSopenharmony_ci    /**
534161847f8eSopenharmony_ci     * Reads image pixel map data in an area.
534261847f8eSopenharmony_ci     *
534361847f8eSopenharmony_ci     * @param { PositionArea } area Area from which the image pixel map data will be read.
534461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
534561847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
534661847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
534761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
534861847f8eSopenharmony_ci     * @crossplatform
534961847f8eSopenharmony_ci     * @atomicservice
535061847f8eSopenharmony_ci     * @since 12
535161847f8eSopenharmony_ci     */
535261847f8eSopenharmony_ci    readPixelsSync(area: PositionArea): void;
535361847f8eSopenharmony_ci
535461847f8eSopenharmony_ci    /**
535561847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a promise to return
535661847f8eSopenharmony_ci     * the operation result.
535761847f8eSopenharmony_ci     *
535861847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
535961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
536061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
536161847f8eSopenharmony_ci     * @since 7
536261847f8eSopenharmony_ci     */
536361847f8eSopenharmony_ci    /**
536461847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a promise to return
536561847f8eSopenharmony_ci     * the operation result.
536661847f8eSopenharmony_ci     *
536761847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
536861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
536961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
537061847f8eSopenharmony_ci     * @crossplatform
537161847f8eSopenharmony_ci     * @since 10
537261847f8eSopenharmony_ci     */
537361847f8eSopenharmony_ci    /**
537461847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a promise to return
537561847f8eSopenharmony_ci     * the operation result.
537661847f8eSopenharmony_ci     *
537761847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
537861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
537961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
538061847f8eSopenharmony_ci     * @crossplatform
538161847f8eSopenharmony_ci     * @atomicservice
538261847f8eSopenharmony_ci     * @since 11
538361847f8eSopenharmony_ci     */
538461847f8eSopenharmony_ci    /**
538561847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a promise to return
538661847f8eSopenharmony_ci     * the operation result.
538761847f8eSopenharmony_ci     *
538861847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
538961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
539061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
539161847f8eSopenharmony_ci     * @crossplatform
539261847f8eSopenharmony_ci     * @form
539361847f8eSopenharmony_ci     * @atomicservice
539461847f8eSopenharmony_ci     * @since 12
539561847f8eSopenharmony_ci     */
539661847f8eSopenharmony_ci    writePixels(area: PositionArea): Promise<void>;
539761847f8eSopenharmony_ci
539861847f8eSopenharmony_ci    /**
539961847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a callback to return
540061847f8eSopenharmony_ci     * the operation result.
540161847f8eSopenharmony_ci     *
540261847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
540361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
540461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
540561847f8eSopenharmony_ci     * @since 7
540661847f8eSopenharmony_ci     */
540761847f8eSopenharmony_ci    /**
540861847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a callback to return
540961847f8eSopenharmony_ci     * the operation result.
541061847f8eSopenharmony_ci     *
541161847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
541261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
541361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
541461847f8eSopenharmony_ci     * @crossplatform
541561847f8eSopenharmony_ci     * @since 10
541661847f8eSopenharmony_ci     */
541761847f8eSopenharmony_ci    /**
541861847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a callback to return
541961847f8eSopenharmony_ci     * the operation result.
542061847f8eSopenharmony_ci     *
542161847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
542261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
542361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
542461847f8eSopenharmony_ci     * @crossplatform
542561847f8eSopenharmony_ci     * @atomicservice
542661847f8eSopenharmony_ci     * @since 11
542761847f8eSopenharmony_ci     */
542861847f8eSopenharmony_ci    /**
542961847f8eSopenharmony_ci     * Writes image pixel map data to the specified area. This method uses a callback to return
543061847f8eSopenharmony_ci     * the operation result.
543161847f8eSopenharmony_ci     *
543261847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
543361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
543461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
543561847f8eSopenharmony_ci     * @crossplatform
543661847f8eSopenharmony_ci     * @form
543761847f8eSopenharmony_ci     * @atomicservice
543861847f8eSopenharmony_ci     * @since 12
543961847f8eSopenharmony_ci     */
544061847f8eSopenharmony_ci    writePixels(area: PositionArea, callback: AsyncCallback<void>): void;
544161847f8eSopenharmony_ci
544261847f8eSopenharmony_ci    /**
544361847f8eSopenharmony_ci     * Writes image pixel map data to the specified area.
544461847f8eSopenharmony_ci     *
544561847f8eSopenharmony_ci     * @param { PositionArea } area Area to which the image pixel map data will be written.
544661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
544761847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
544861847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
544961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
545061847f8eSopenharmony_ci     * @crossplatform
545161847f8eSopenharmony_ci     * @form
545261847f8eSopenharmony_ci     * @atomicservice
545361847f8eSopenharmony_ci     * @since 12
545461847f8eSopenharmony_ci     */
545561847f8eSopenharmony_ci    writePixelsSync(area: PositionArea): void;
545661847f8eSopenharmony_ci    /**
545761847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
545861847f8eSopenharmony_ci     * uses a promise to return the result.
545961847f8eSopenharmony_ci     *
546061847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
546161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
546261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
546361847f8eSopenharmony_ci     * @since 7
546461847f8eSopenharmony_ci     */
546561847f8eSopenharmony_ci    /**
546661847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
546761847f8eSopenharmony_ci     * uses a promise to return the result.
546861847f8eSopenharmony_ci     *
546961847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
547061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
547161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
547261847f8eSopenharmony_ci     * @crossplatform
547361847f8eSopenharmony_ci     * @since 10
547461847f8eSopenharmony_ci     */
547561847f8eSopenharmony_ci    /**
547661847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
547761847f8eSopenharmony_ci     * uses a promise to return the result.
547861847f8eSopenharmony_ci     *
547961847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
548061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
548161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
548261847f8eSopenharmony_ci     * @crossplatform
548361847f8eSopenharmony_ci     * @atomicservice
548461847f8eSopenharmony_ci     * @since 11
548561847f8eSopenharmony_ci     */
548661847f8eSopenharmony_ci    /**
548761847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
548861847f8eSopenharmony_ci     * uses a promise to return the result.
548961847f8eSopenharmony_ci     *
549061847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
549161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
549261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
549361847f8eSopenharmony_ci     * @crossplatform
549461847f8eSopenharmony_ci     * @form
549561847f8eSopenharmony_ci     * @atomicservice
549661847f8eSopenharmony_ci     * @since 12
549761847f8eSopenharmony_ci     */
549861847f8eSopenharmony_ci    writeBufferToPixels(src: ArrayBuffer): Promise<void>;
549961847f8eSopenharmony_ci
550061847f8eSopenharmony_ci    /**
550161847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
550261847f8eSopenharmony_ci     * uses a callback to return the result.
550361847f8eSopenharmony_ci     *
550461847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
550561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
550661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
550761847f8eSopenharmony_ci     * @since 7
550861847f8eSopenharmony_ci     */
550961847f8eSopenharmony_ci    /**
551061847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
551161847f8eSopenharmony_ci     * uses a callback to return the result.
551261847f8eSopenharmony_ci     *
551361847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
551461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
551561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
551661847f8eSopenharmony_ci     * @crossplatform
551761847f8eSopenharmony_ci     * @since 10
551861847f8eSopenharmony_ci     */
551961847f8eSopenharmony_ci    /**
552061847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
552161847f8eSopenharmony_ci     * uses a callback to return the result.
552261847f8eSopenharmony_ci     *
552361847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
552461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
552561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
552661847f8eSopenharmony_ci     * @crossplatform
552761847f8eSopenharmony_ci     * @atomicservice
552861847f8eSopenharmony_ci     * @since 11
552961847f8eSopenharmony_ci     */
553061847f8eSopenharmony_ci    /**
553161847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object. This method
553261847f8eSopenharmony_ci     * uses a callback to return the result.
553361847f8eSopenharmony_ci     *
553461847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
553561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
553661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
553761847f8eSopenharmony_ci     * @crossplatform
553861847f8eSopenharmony_ci     * @form
553961847f8eSopenharmony_ci     * @atomicservice
554061847f8eSopenharmony_ci     * @since 12
554161847f8eSopenharmony_ci     */
554261847f8eSopenharmony_ci    writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback<void>): void;
554361847f8eSopenharmony_ci
554461847f8eSopenharmony_ci    /**
554561847f8eSopenharmony_ci     * Reads image data in an ArrayBuffer and writes the data to a PixelMap object.
554661847f8eSopenharmony_ci     *
554761847f8eSopenharmony_ci     * @param { ArrayBuffer } src A buffer from which the image data will be read.
554861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
554961847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
555061847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
555161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
555261847f8eSopenharmony_ci     * @crossplatform
555361847f8eSopenharmony_ci     * @atomicservice
555461847f8eSopenharmony_ci     * @since 12
555561847f8eSopenharmony_ci     */
555661847f8eSopenharmony_ci    writeBufferToPixelsSync(src: ArrayBuffer): void;
555761847f8eSopenharmony_ci
555861847f8eSopenharmony_ci    /**
555961847f8eSopenharmony_ci     * Convert pixelmap to standard dynamic range.
556061847f8eSopenharmony_ci     * 
556161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
556261847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid image operation.
556361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
556461847f8eSopenharmony_ci     * @since 12
556561847f8eSopenharmony_ci     */
556661847f8eSopenharmony_ci    toSdr(): Promise<void>;
556761847f8eSopenharmony_ci  
556861847f8eSopenharmony_ci    /**
556961847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a promise to return the information.
557061847f8eSopenharmony_ci     *
557161847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.
557261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
557361847f8eSopenharmony_ci     * @since 7
557461847f8eSopenharmony_ci     */
557561847f8eSopenharmony_ci    /**
557661847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a promise to return the information.
557761847f8eSopenharmony_ci     *
557861847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.
557961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
558061847f8eSopenharmony_ci     * @crossplatform
558161847f8eSopenharmony_ci     * @since 10
558261847f8eSopenharmony_ci     */
558361847f8eSopenharmony_ci    /**
558461847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a promise to return the information.
558561847f8eSopenharmony_ci     *
558661847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.
558761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
558861847f8eSopenharmony_ci     * @crossplatform
558961847f8eSopenharmony_ci     * @atomicservice
559061847f8eSopenharmony_ci     * @since 11
559161847f8eSopenharmony_ci     */
559261847f8eSopenharmony_ci    /**
559361847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a promise to return the information.
559461847f8eSopenharmony_ci     *
559561847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image pixel map information. If the operation fails, an error message is returned.
559661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
559761847f8eSopenharmony_ci     * @crossplatform
559861847f8eSopenharmony_ci     * @form
559961847f8eSopenharmony_ci     * @atomicservice
560061847f8eSopenharmony_ci     * @since 12
560161847f8eSopenharmony_ci     */
560261847f8eSopenharmony_ci    getImageInfo(): Promise<ImageInfo>;
560361847f8eSopenharmony_ci
560461847f8eSopenharmony_ci    /**
560561847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a callback to return the information.
560661847f8eSopenharmony_ci     *
560761847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.
560861847f8eSopenharmony_ci     * If the operation fails, an error message is returned.
560961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
561061847f8eSopenharmony_ci     * @since 7
561161847f8eSopenharmony_ci     */
561261847f8eSopenharmony_ci    /**
561361847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a callback to return the information.
561461847f8eSopenharmony_ci     *
561561847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.
561661847f8eSopenharmony_ci     * If the operation fails, an error message is returned.
561761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
561861847f8eSopenharmony_ci     * @crossplatform
561961847f8eSopenharmony_ci     * @since 10
562061847f8eSopenharmony_ci     */
562161847f8eSopenharmony_ci    /**
562261847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a callback to return the information.
562361847f8eSopenharmony_ci     *
562461847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.
562561847f8eSopenharmony_ci     * If the operation fails, an error message is returned.
562661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
562761847f8eSopenharmony_ci     * @crossplatform
562861847f8eSopenharmony_ci     * @atomicservice
562961847f8eSopenharmony_ci     * @since 11
563061847f8eSopenharmony_ci     */
563161847f8eSopenharmony_ci    /**
563261847f8eSopenharmony_ci     * Obtains pixel map information about this image. This method uses a callback to return the information.
563361847f8eSopenharmony_ci     *
563461847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image pixel map information.
563561847f8eSopenharmony_ci     * If the operation fails, an error message is returned.
563661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
563761847f8eSopenharmony_ci     * @crossplatform
563861847f8eSopenharmony_ci     * @form
563961847f8eSopenharmony_ci     * @atomicservice
564061847f8eSopenharmony_ci     * @since 12
564161847f8eSopenharmony_ci     */
564261847f8eSopenharmony_ci    getImageInfo(callback: AsyncCallback<ImageInfo>): void;
564361847f8eSopenharmony_ci
564461847f8eSopenharmony_ci    /**
564561847f8eSopenharmony_ci     * Get image information from image source.
564661847f8eSopenharmony_ci     *
564761847f8eSopenharmony_ci     * @returns { ImageInfo } the image information.
564861847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
564961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
565061847f8eSopenharmony_ci     * @crossplatform
565161847f8eSopenharmony_ci     * @form
565261847f8eSopenharmony_ci     * @atomicservice
565361847f8eSopenharmony_ci     * @since 12
565461847f8eSopenharmony_ci     */
565561847f8eSopenharmony_ci    getImageInfoSync(): ImageInfo;
565661847f8eSopenharmony_ci
565761847f8eSopenharmony_ci    /**
565861847f8eSopenharmony_ci     * Obtains the number of bytes in each line of the image pixel map.
565961847f8eSopenharmony_ci     *
566061847f8eSopenharmony_ci     * @returns { number } Number of bytes in each line.
566161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
566261847f8eSopenharmony_ci     * @since 7
566361847f8eSopenharmony_ci     */
566461847f8eSopenharmony_ci    /**
566561847f8eSopenharmony_ci     * Obtains the number of bytes in each line of the image pixel map.
566661847f8eSopenharmony_ci     *
566761847f8eSopenharmony_ci     * @returns { number } Number of bytes in each line.
566861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
566961847f8eSopenharmony_ci     * @crossplatform
567061847f8eSopenharmony_ci     * @since 10
567161847f8eSopenharmony_ci     */
567261847f8eSopenharmony_ci    /**
567361847f8eSopenharmony_ci     * Obtains the number of bytes in each line of the image pixel map.
567461847f8eSopenharmony_ci     *
567561847f8eSopenharmony_ci     * @returns { number } Number of bytes in each line.
567661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
567761847f8eSopenharmony_ci     * @crossplatform
567861847f8eSopenharmony_ci     * @atomicservice
567961847f8eSopenharmony_ci     * @since 11
568061847f8eSopenharmony_ci     */
568161847f8eSopenharmony_ci    /**
568261847f8eSopenharmony_ci     * Obtains the number of bytes in each line of the image pixel map.
568361847f8eSopenharmony_ci     *
568461847f8eSopenharmony_ci     * @returns { number } Number of bytes in each line.
568561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
568661847f8eSopenharmony_ci     * @crossplatform
568761847f8eSopenharmony_ci     * @form
568861847f8eSopenharmony_ci     * @atomicservice
568961847f8eSopenharmony_ci     * @since 12
569061847f8eSopenharmony_ci     */
569161847f8eSopenharmony_ci    getBytesNumberPerRow(): number;
569261847f8eSopenharmony_ci
569361847f8eSopenharmony_ci    /**
569461847f8eSopenharmony_ci     * Obtains the total number of bytes of the image pixel map.
569561847f8eSopenharmony_ci     *
569661847f8eSopenharmony_ci     * @returns { number } Total number of bytes.
569761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
569861847f8eSopenharmony_ci     * @since 7
569961847f8eSopenharmony_ci     */
570061847f8eSopenharmony_ci    /**
570161847f8eSopenharmony_ci     * Obtains the total number of bytes of the image pixel map.
570261847f8eSopenharmony_ci     *
570361847f8eSopenharmony_ci     * @returns { number } Total number of bytes.
570461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
570561847f8eSopenharmony_ci     * @crossplatform
570661847f8eSopenharmony_ci     * @since 10
570761847f8eSopenharmony_ci     */
570861847f8eSopenharmony_ci    /**
570961847f8eSopenharmony_ci     * Obtains the total number of bytes of the image pixel map.
571061847f8eSopenharmony_ci     *
571161847f8eSopenharmony_ci     * @returns { number } Total number of bytes.
571261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
571361847f8eSopenharmony_ci     * @crossplatform
571461847f8eSopenharmony_ci     * @atomicservice
571561847f8eSopenharmony_ci     * @since 11
571661847f8eSopenharmony_ci     */
571761847f8eSopenharmony_ci    /**
571861847f8eSopenharmony_ci     * Obtains the total number of bytes of the image pixel map.
571961847f8eSopenharmony_ci     *
572061847f8eSopenharmony_ci     * @returns { number } Total number of bytes.
572161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
572261847f8eSopenharmony_ci     * @crossplatform
572361847f8eSopenharmony_ci     * @form
572461847f8eSopenharmony_ci     * @atomicservice
572561847f8eSopenharmony_ci     * @since 12
572661847f8eSopenharmony_ci     */
572761847f8eSopenharmony_ci    getPixelBytesNumber(): number;
572861847f8eSopenharmony_ci
572961847f8eSopenharmony_ci    /**
573061847f8eSopenharmony_ci     * Obtains the density of the image pixel map.
573161847f8eSopenharmony_ci     *
573261847f8eSopenharmony_ci     * @returns { number } The number of density.
573361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
573461847f8eSopenharmony_ci     * @since 9
573561847f8eSopenharmony_ci     */
573661847f8eSopenharmony_ci    /**
573761847f8eSopenharmony_ci     * Obtains the density of the image pixel map.
573861847f8eSopenharmony_ci     *
573961847f8eSopenharmony_ci     * @returns { number } The number of density.
574061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
574161847f8eSopenharmony_ci     * @crossplatform
574261847f8eSopenharmony_ci     * @since 10
574361847f8eSopenharmony_ci     */
574461847f8eSopenharmony_ci    /**
574561847f8eSopenharmony_ci     * Obtains the density of the image pixel map.
574661847f8eSopenharmony_ci     *
574761847f8eSopenharmony_ci     * @returns { number } The number of density.
574861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
574961847f8eSopenharmony_ci     * @crossplatform
575061847f8eSopenharmony_ci     * @atomicservice
575161847f8eSopenharmony_ci     * @since 11
575261847f8eSopenharmony_ci     */
575361847f8eSopenharmony_ci    /**
575461847f8eSopenharmony_ci     * Obtains the density of the image pixel map.
575561847f8eSopenharmony_ci     *
575661847f8eSopenharmony_ci     * @returns { number } The number of density.
575761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
575861847f8eSopenharmony_ci     * @crossplatform
575961847f8eSopenharmony_ci     * @form
576061847f8eSopenharmony_ci     * @atomicservice
576161847f8eSopenharmony_ci     * @since 12
576261847f8eSopenharmony_ci     */
576361847f8eSopenharmony_ci    getDensity(): number;
576461847f8eSopenharmony_ci
576561847f8eSopenharmony_ci    /**
576661847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a callback to return the operation result.
576761847f8eSopenharmony_ci     *
576861847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
576961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
577061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
577161847f8eSopenharmony_ci     * @since 9
577261847f8eSopenharmony_ci     */
577361847f8eSopenharmony_ci    /**
577461847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a callback to return the operation result.
577561847f8eSopenharmony_ci     *
577661847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
577761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
577861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
577961847f8eSopenharmony_ci     * @crossplatform
578061847f8eSopenharmony_ci     * @since 10
578161847f8eSopenharmony_ci     */
578261847f8eSopenharmony_ci    /**
578361847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a callback to return the operation result.
578461847f8eSopenharmony_ci     *
578561847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
578661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
578761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
578861847f8eSopenharmony_ci     * @crossplatform
578961847f8eSopenharmony_ci     * @atomicservice
579061847f8eSopenharmony_ci     * @since 11
579161847f8eSopenharmony_ci     */
579261847f8eSopenharmony_ci    /**
579361847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a callback to return the operation result.
579461847f8eSopenharmony_ci     *
579561847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
579661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
579761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
579861847f8eSopenharmony_ci     * @crossplatform
579961847f8eSopenharmony_ci     * @form
580061847f8eSopenharmony_ci     * @atomicservice
580161847f8eSopenharmony_ci     * @since 12
580261847f8eSopenharmony_ci     */
580361847f8eSopenharmony_ci    opacity(rate: number, callback: AsyncCallback<void>): void;
580461847f8eSopenharmony_ci
580561847f8eSopenharmony_ci    /**
580661847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a promise to return the result.
580761847f8eSopenharmony_ci     *
580861847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
580961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
581061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
581161847f8eSopenharmony_ci     * @since 9
581261847f8eSopenharmony_ci     */
581361847f8eSopenharmony_ci    /**
581461847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a promise to return the result.
581561847f8eSopenharmony_ci     *
581661847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
581761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
581861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
581961847f8eSopenharmony_ci     * @crossplatform
582061847f8eSopenharmony_ci     * @since 10
582161847f8eSopenharmony_ci     */
582261847f8eSopenharmony_ci    /**
582361847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a promise to return the result.
582461847f8eSopenharmony_ci     *
582561847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
582661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
582761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
582861847f8eSopenharmony_ci     * @crossplatform
582961847f8eSopenharmony_ci     * @atomicservice
583061847f8eSopenharmony_ci     * @since 11
583161847f8eSopenharmony_ci     */
583261847f8eSopenharmony_ci    /**
583361847f8eSopenharmony_ci     * Set the transparent rate of pixel map. This method uses a promise to return the result.
583461847f8eSopenharmony_ci     *
583561847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
583661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
583761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
583861847f8eSopenharmony_ci     * @crossplatform
583961847f8eSopenharmony_ci     * @form
584061847f8eSopenharmony_ci     * @atomicservice
584161847f8eSopenharmony_ci     * @since 12
584261847f8eSopenharmony_ci     */
584361847f8eSopenharmony_ci    opacity(rate: number): Promise<void>;
584461847f8eSopenharmony_ci
584561847f8eSopenharmony_ci    /**
584661847f8eSopenharmony_ci     * Set the transparent rate of pixel map.
584761847f8eSopenharmony_ci     *
584861847f8eSopenharmony_ci     * @param { number } rate The value of transparent rate.
584961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
585061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
585161847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
585261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
585361847f8eSopenharmony_ci     * @crossplatform
585461847f8eSopenharmony_ci     * @atomicservice
585561847f8eSopenharmony_ci     * @since 12
585661847f8eSopenharmony_ci     */
585761847f8eSopenharmony_ci    opacitySync(rate: number): void;
585861847f8eSopenharmony_ci    /**
585961847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a promise to return the information.
586061847f8eSopenharmony_ci     *
586161847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.
586261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
586361847f8eSopenharmony_ci     * @since 9
586461847f8eSopenharmony_ci     */
586561847f8eSopenharmony_ci    /**
586661847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a promise to return the information.
586761847f8eSopenharmony_ci     *
586861847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.
586961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
587061847f8eSopenharmony_ci     * @crossplatform
587161847f8eSopenharmony_ci     * @since 10
587261847f8eSopenharmony_ci     */
587361847f8eSopenharmony_ci    /**
587461847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a promise to return the information.
587561847f8eSopenharmony_ci     *
587661847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.
587761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
587861847f8eSopenharmony_ci     * @crossplatform
587961847f8eSopenharmony_ci     * @atomicservice
588061847f8eSopenharmony_ci     * @since 11
588161847f8eSopenharmony_ci     */
588261847f8eSopenharmony_ci    /**
588361847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a promise to return the information.
588461847f8eSopenharmony_ci     *
588561847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the new image pixel map. If the operation fails, an error message is returned.
588661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
588761847f8eSopenharmony_ci     * @crossplatform
588861847f8eSopenharmony_ci     * @form
588961847f8eSopenharmony_ci     * @atomicservice
589061847f8eSopenharmony_ci     * @since 12
589161847f8eSopenharmony_ci     */
589261847f8eSopenharmony_ci    createAlphaPixelmap(): Promise<PixelMap>;
589361847f8eSopenharmony_ci
589461847f8eSopenharmony_ci    /**
589561847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a callback to return the information.
589661847f8eSopenharmony_ci     *
589761847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.
589861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
589961847f8eSopenharmony_ci     * @since 9
590061847f8eSopenharmony_ci     */
590161847f8eSopenharmony_ci    /**
590261847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a callback to return the information.
590361847f8eSopenharmony_ci     *
590461847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.
590561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
590661847f8eSopenharmony_ci     * @crossplatform
590761847f8eSopenharmony_ci     * @since 10
590861847f8eSopenharmony_ci     */
590961847f8eSopenharmony_ci    /**
591061847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a callback to return the information.
591161847f8eSopenharmony_ci     *
591261847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.
591361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
591461847f8eSopenharmony_ci     * @crossplatform
591561847f8eSopenharmony_ci     * @atomicservice
591661847f8eSopenharmony_ci     * @since 11
591761847f8eSopenharmony_ci     */
591861847f8eSopenharmony_ci    /**
591961847f8eSopenharmony_ci     * Obtains new pixel map with alpha information. This method uses a callback to return the information.
592061847f8eSopenharmony_ci     *
592161847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the new image pixel map. If the operation fails, an error message is returned.
592261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
592361847f8eSopenharmony_ci     * @crossplatform
592461847f8eSopenharmony_ci     * @form
592561847f8eSopenharmony_ci     * @atomicservice
592661847f8eSopenharmony_ci     * @since 12
592761847f8eSopenharmony_ci     */
592861847f8eSopenharmony_ci    createAlphaPixelmap(callback: AsyncCallback<PixelMap>): void;
592961847f8eSopenharmony_ci
593061847f8eSopenharmony_ci    /**
593161847f8eSopenharmony_ci     * Obtains new pixel map with alpha information.
593261847f8eSopenharmony_ci     *
593361847f8eSopenharmony_ci     * @returns { PixelMap } return the new image pixel map. If the operation fails, an error message is returned.
593461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Parameter verification failed.
593561847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
593661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
593761847f8eSopenharmony_ci     * @crossplatform
593861847f8eSopenharmony_ci     * @atomicservice
593961847f8eSopenharmony_ci     * @since 12
594061847f8eSopenharmony_ci     */
594161847f8eSopenharmony_ci    createAlphaPixelmapSync(): PixelMap;
594261847f8eSopenharmony_ci    /**
594361847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a callback to return the operation result.
594461847f8eSopenharmony_ci     *
594561847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
594661847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
594761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
594861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
594961847f8eSopenharmony_ci     * @since 9
595061847f8eSopenharmony_ci     */
595161847f8eSopenharmony_ci    /**
595261847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a callback to return the operation result.
595361847f8eSopenharmony_ci     *
595461847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
595561847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
595661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
595761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
595861847f8eSopenharmony_ci     * @crossplatform
595961847f8eSopenharmony_ci     * @since 10
596061847f8eSopenharmony_ci     */
596161847f8eSopenharmony_ci    /**
596261847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a callback to return the operation result.
596361847f8eSopenharmony_ci     *
596461847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
596561847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
596661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
596761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
596861847f8eSopenharmony_ci     * @crossplatform
596961847f8eSopenharmony_ci     * @atomicservice
597061847f8eSopenharmony_ci     * @since 11
597161847f8eSopenharmony_ci     */
597261847f8eSopenharmony_ci    /**
597361847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a callback to return the operation result.
597461847f8eSopenharmony_ci     *
597561847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
597661847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
597761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
597861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
597961847f8eSopenharmony_ci     * @crossplatform
598061847f8eSopenharmony_ci     * @form
598161847f8eSopenharmony_ci     * @atomicservice
598261847f8eSopenharmony_ci     * @since 12
598361847f8eSopenharmony_ci     */
598461847f8eSopenharmony_ci    scale(x: number, y: number, callback: AsyncCallback<void>): void;
598561847f8eSopenharmony_ci
598661847f8eSopenharmony_ci    /**
598761847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a promise to return the result.
598861847f8eSopenharmony_ci     *
598961847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
599061847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
599161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
599261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
599361847f8eSopenharmony_ci     * @since 9
599461847f8eSopenharmony_ci     */
599561847f8eSopenharmony_ci    /**
599661847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a promise to return the result.
599761847f8eSopenharmony_ci     *
599861847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
599961847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
600061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
600161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
600261847f8eSopenharmony_ci     * @crossplatform
600361847f8eSopenharmony_ci     * @since 10
600461847f8eSopenharmony_ci     */
600561847f8eSopenharmony_ci    /**
600661847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a promise to return the result.
600761847f8eSopenharmony_ci     *
600861847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
600961847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
601061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
601161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
601261847f8eSopenharmony_ci     * @crossplatform
601361847f8eSopenharmony_ci     * @atomicservice
601461847f8eSopenharmony_ci     * @since 11
601561847f8eSopenharmony_ci     */
601661847f8eSopenharmony_ci    /**
601761847f8eSopenharmony_ci     * Image zoom in width and height. This method uses a promise to return the result.
601861847f8eSopenharmony_ci     *
601961847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
602061847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
602161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
602261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
602361847f8eSopenharmony_ci     * @crossplatform
602461847f8eSopenharmony_ci     * @form
602561847f8eSopenharmony_ci     * @atomicservice
602661847f8eSopenharmony_ci     * @since 12
602761847f8eSopenharmony_ci     */
602861847f8eSopenharmony_ci    scale(x: number, y: number): Promise<void>;
602961847f8eSopenharmony_ci
603061847f8eSopenharmony_ci    /**
603161847f8eSopenharmony_ci     * Image zoom in width and height.
603261847f8eSopenharmony_ci     *
603361847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
603461847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
603561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
603661847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
603761847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
603861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
603961847f8eSopenharmony_ci     * @crossplatform
604061847f8eSopenharmony_ci     * @atomicservice
604161847f8eSopenharmony_ci     * @since 12
604261847f8eSopenharmony_ci     */
604361847f8eSopenharmony_ci    scaleSync(x: number, y: number): void;
604461847f8eSopenharmony_ci
604561847f8eSopenharmony_ci    /**
604661847f8eSopenharmony_ci     * Image zoom in width and height width with anti-aliasing. This method uses a promise to return the result.
604761847f8eSopenharmony_ci     *
604861847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
604961847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
605061847f8eSopenharmony_ci     * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.
605161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
605261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
605361847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
605461847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
605561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
605661847f8eSopenharmony_ci     * @crossplatform
605761847f8eSopenharmony_ci     * @form
605861847f8eSopenharmony_ci     * @atomicservice
605961847f8eSopenharmony_ci     * @since 12
606061847f8eSopenharmony_ci     */
606161847f8eSopenharmony_ci    scale(x: number, y: number, level: AntiAliasingLevel): Promise<void>;
606261847f8eSopenharmony_ci
606361847f8eSopenharmony_ci    /**
606461847f8eSopenharmony_ci     * Image zoom in width and height with anti-aliasing.
606561847f8eSopenharmony_ci     *
606661847f8eSopenharmony_ci     * @param { number } x The zoom value of width.
606761847f8eSopenharmony_ci     * @param { number } y The zoom value of height.
606861847f8eSopenharmony_ci     * @param { AntiAliasingLevel } level The anti-aliasing algorithm to be used.
606961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
607061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
607161847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
607261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
607361847f8eSopenharmony_ci     * @crossplatform
607461847f8eSopenharmony_ci     * @atomicservice
607561847f8eSopenharmony_ci     * @since 12
607661847f8eSopenharmony_ci     */
607761847f8eSopenharmony_ci    scaleSync(x: number, y: number, level: AntiAliasingLevel): void;
607861847f8eSopenharmony_ci
607961847f8eSopenharmony_ci    /**
608061847f8eSopenharmony_ci     * Image position transformation. This method uses a callback to return the operation result.
608161847f8eSopenharmony_ci     *
608261847f8eSopenharmony_ci     * @param { number } x The position value of width.
608361847f8eSopenharmony_ci     * @param { number } y The position value of height.
608461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
608561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
608661847f8eSopenharmony_ci     * @since 9
608761847f8eSopenharmony_ci     */
608861847f8eSopenharmony_ci    /**
608961847f8eSopenharmony_ci     * Image position transformation. This method uses a callback to return the operation result.
609061847f8eSopenharmony_ci     *
609161847f8eSopenharmony_ci     * @param { number } x The position value of width.
609261847f8eSopenharmony_ci     * @param { number } y The position value of height.
609361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
609461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
609561847f8eSopenharmony_ci     * @crossplatform
609661847f8eSopenharmony_ci     * @since 10
609761847f8eSopenharmony_ci     */
609861847f8eSopenharmony_ci    /**
609961847f8eSopenharmony_ci     * Image position transformation. This method uses a callback to return the operation result.
610061847f8eSopenharmony_ci     *
610161847f8eSopenharmony_ci     * @param { number } x The position value of width.
610261847f8eSopenharmony_ci     * @param { number } y The position value of height.
610361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
610461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
610561847f8eSopenharmony_ci     * @crossplatform
610661847f8eSopenharmony_ci     * @atomicservice
610761847f8eSopenharmony_ci     * @since 11
610861847f8eSopenharmony_ci     */
610961847f8eSopenharmony_ci    /**
611061847f8eSopenharmony_ci     * Image position transformation. This method uses a callback to return the operation result.
611161847f8eSopenharmony_ci     *
611261847f8eSopenharmony_ci     * @param { number } x The position value of width.
611361847f8eSopenharmony_ci     * @param { number } y The position value of height.
611461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
611561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
611661847f8eSopenharmony_ci     * @crossplatform
611761847f8eSopenharmony_ci     * @form
611861847f8eSopenharmony_ci     * @atomicservice
611961847f8eSopenharmony_ci     * @since 12
612061847f8eSopenharmony_ci     */
612161847f8eSopenharmony_ci    translate(x: number, y: number, callback: AsyncCallback<void>): void;
612261847f8eSopenharmony_ci
612361847f8eSopenharmony_ci    /**
612461847f8eSopenharmony_ci     * Image position transformation. This method uses a promise to return the result.
612561847f8eSopenharmony_ci     *
612661847f8eSopenharmony_ci     * @param { number } x The position value of width.
612761847f8eSopenharmony_ci     * @param { number } y The position value of height.
612861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
612961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
613061847f8eSopenharmony_ci     * @since 9
613161847f8eSopenharmony_ci     */
613261847f8eSopenharmony_ci    /**
613361847f8eSopenharmony_ci     * Image position transformation. This method uses a promise to return the result.
613461847f8eSopenharmony_ci     *
613561847f8eSopenharmony_ci     * @param { number } x The position value of width.
613661847f8eSopenharmony_ci     * @param { number } y The position value of height.
613761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
613861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
613961847f8eSopenharmony_ci     * @crossplatform
614061847f8eSopenharmony_ci     * @since 10
614161847f8eSopenharmony_ci     */
614261847f8eSopenharmony_ci    /**
614361847f8eSopenharmony_ci     * Image position transformation. This method uses a promise to return the result.
614461847f8eSopenharmony_ci     *
614561847f8eSopenharmony_ci     * @param { number } x The position value of width.
614661847f8eSopenharmony_ci     * @param { number } y The position value of height.
614761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
614861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
614961847f8eSopenharmony_ci     * @crossplatform
615061847f8eSopenharmony_ci     * @atomicservice
615161847f8eSopenharmony_ci     * @since 11
615261847f8eSopenharmony_ci     */
615361847f8eSopenharmony_ci    /**
615461847f8eSopenharmony_ci     * Image position transformation. This method uses a promise to return the result.
615561847f8eSopenharmony_ci     *
615661847f8eSopenharmony_ci     * @param { number } x The position value of width.
615761847f8eSopenharmony_ci     * @param { number } y The position value of height.
615861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
615961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
616061847f8eSopenharmony_ci     * @crossplatform
616161847f8eSopenharmony_ci     * @form
616261847f8eSopenharmony_ci     * @atomicservice
616361847f8eSopenharmony_ci     * @since 12
616461847f8eSopenharmony_ci     */
616561847f8eSopenharmony_ci    translate(x: number, y: number): Promise<void>;
616661847f8eSopenharmony_ci
616761847f8eSopenharmony_ci    /**
616861847f8eSopenharmony_ci     * Image position transformation.
616961847f8eSopenharmony_ci     *
617061847f8eSopenharmony_ci     * @param { number } x The position value of width.
617161847f8eSopenharmony_ci     * @param { number } y The position value of height.
617261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
617361847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
617461847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
617561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
617661847f8eSopenharmony_ci     * @crossplatform
617761847f8eSopenharmony_ci     * @atomicservice
617861847f8eSopenharmony_ci     * @since 12
617961847f8eSopenharmony_ci     */
618061847f8eSopenharmony_ci    translateSync(x: number, y: number): void;
618161847f8eSopenharmony_ci
618261847f8eSopenharmony_ci    /**
618361847f8eSopenharmony_ci     * Image rotation. This method uses a callback to return the operation result.
618461847f8eSopenharmony_ci     *
618561847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
618661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
618761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
618861847f8eSopenharmony_ci     * @since 9
618961847f8eSopenharmony_ci     */
619061847f8eSopenharmony_ci    /**
619161847f8eSopenharmony_ci     * Image rotation. This method uses a callback to return the operation result.
619261847f8eSopenharmony_ci     *
619361847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
619461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
619561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
619661847f8eSopenharmony_ci     * @crossplatform
619761847f8eSopenharmony_ci     * @since 10
619861847f8eSopenharmony_ci     */
619961847f8eSopenharmony_ci    /**
620061847f8eSopenharmony_ci     * Image rotation. This method uses a callback to return the operation result.
620161847f8eSopenharmony_ci     *
620261847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
620361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
620461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
620561847f8eSopenharmony_ci     * @crossplatform
620661847f8eSopenharmony_ci     * @atomicservice
620761847f8eSopenharmony_ci     * @since 11
620861847f8eSopenharmony_ci     */
620961847f8eSopenharmony_ci    /**
621061847f8eSopenharmony_ci     * Image rotation. This method uses a callback to return the operation result.
621161847f8eSopenharmony_ci     *
621261847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
621361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
621461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
621561847f8eSopenharmony_ci     * @crossplatform
621661847f8eSopenharmony_ci     * @form
621761847f8eSopenharmony_ci     * @atomicservice
621861847f8eSopenharmony_ci     * @since 12
621961847f8eSopenharmony_ci     */
622061847f8eSopenharmony_ci    rotate(angle: number, callback: AsyncCallback<void>): void;
622161847f8eSopenharmony_ci
622261847f8eSopenharmony_ci    /**
622361847f8eSopenharmony_ci     * Image rotation. This method uses a promise to return the result.
622461847f8eSopenharmony_ci     *
622561847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
622661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
622761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
622861847f8eSopenharmony_ci     * @since 9
622961847f8eSopenharmony_ci     */
623061847f8eSopenharmony_ci    /**
623161847f8eSopenharmony_ci     * Image rotation. This method uses a promise to return the result.
623261847f8eSopenharmony_ci     *
623361847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
623461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
623561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
623661847f8eSopenharmony_ci     * @crossplatform
623761847f8eSopenharmony_ci     * @since 10
623861847f8eSopenharmony_ci     */
623961847f8eSopenharmony_ci    /**
624061847f8eSopenharmony_ci     * Image rotation. This method uses a promise to return the result.
624161847f8eSopenharmony_ci     *
624261847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
624361847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
624461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
624561847f8eSopenharmony_ci     * @crossplatform
624661847f8eSopenharmony_ci     * @atomicservice
624761847f8eSopenharmony_ci     * @since 11
624861847f8eSopenharmony_ci     */
624961847f8eSopenharmony_ci    /**
625061847f8eSopenharmony_ci     * Image rotation. This method uses a promise to return the result.
625161847f8eSopenharmony_ci     *
625261847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
625361847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
625461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
625561847f8eSopenharmony_ci     * @crossplatform
625661847f8eSopenharmony_ci     * @form
625761847f8eSopenharmony_ci     * @atomicservice
625861847f8eSopenharmony_ci     * @since 12
625961847f8eSopenharmony_ci     */
626061847f8eSopenharmony_ci    rotate(angle: number): Promise<void>;
626161847f8eSopenharmony_ci
626261847f8eSopenharmony_ci    /**
626361847f8eSopenharmony_ci     * Image rotation.
626461847f8eSopenharmony_ci     *
626561847f8eSopenharmony_ci     * @param { number } angle The rotation angle.
626661847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
626761847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
626861847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
626961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
627061847f8eSopenharmony_ci     * @crossplatform
627161847f8eSopenharmony_ci     * @atomicservice
627261847f8eSopenharmony_ci     * @since 12
627361847f8eSopenharmony_ci     */
627461847f8eSopenharmony_ci    rotateSync(angle: number): void;
627561847f8eSopenharmony_ci
627661847f8eSopenharmony_ci    /**
627761847f8eSopenharmony_ci     * Image flipping. This method uses a callback to return the operation result.
627861847f8eSopenharmony_ci     *
627961847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
628061847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
628161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
628261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
628361847f8eSopenharmony_ci     * @since 9
628461847f8eSopenharmony_ci     */
628561847f8eSopenharmony_ci    /**
628661847f8eSopenharmony_ci     * Image flipping. This method uses a callback to return the operation result.
628761847f8eSopenharmony_ci     *
628861847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
628961847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
629061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
629161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
629261847f8eSopenharmony_ci     * @crossplatform
629361847f8eSopenharmony_ci     * @since 10
629461847f8eSopenharmony_ci     */
629561847f8eSopenharmony_ci    /**
629661847f8eSopenharmony_ci     * Image flipping. This method uses a callback to return the operation result.
629761847f8eSopenharmony_ci     *
629861847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
629961847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
630061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
630161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
630261847f8eSopenharmony_ci     * @crossplatform
630361847f8eSopenharmony_ci     * @atomicservice
630461847f8eSopenharmony_ci     * @since 11
630561847f8eSopenharmony_ci     */
630661847f8eSopenharmony_ci    /**
630761847f8eSopenharmony_ci     * Image flipping. This method uses a callback to return the operation result.
630861847f8eSopenharmony_ci     *
630961847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
631061847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
631161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
631261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
631361847f8eSopenharmony_ci     * @crossplatform
631461847f8eSopenharmony_ci     * @form
631561847f8eSopenharmony_ci     * @atomicservice
631661847f8eSopenharmony_ci     * @since 12
631761847f8eSopenharmony_ci     */
631861847f8eSopenharmony_ci    flip(horizontal: boolean, vertical: boolean, callback: AsyncCallback<void>): void;
631961847f8eSopenharmony_ci
632061847f8eSopenharmony_ci    /**
632161847f8eSopenharmony_ci     * Image flipping. This method uses a promise to return the result.
632261847f8eSopenharmony_ci     *
632361847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
632461847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
632561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
632661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
632761847f8eSopenharmony_ci     * @since 9
632861847f8eSopenharmony_ci     */
632961847f8eSopenharmony_ci    /**
633061847f8eSopenharmony_ci     * Image flipping. This method uses a promise to return the result.
633161847f8eSopenharmony_ci     *
633261847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
633361847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
633461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
633561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
633661847f8eSopenharmony_ci     * @crossplatform
633761847f8eSopenharmony_ci     * @since 10
633861847f8eSopenharmony_ci     */
633961847f8eSopenharmony_ci    /**
634061847f8eSopenharmony_ci     * Image flipping. This method uses a promise to return the result.
634161847f8eSopenharmony_ci     *
634261847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
634361847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
634461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
634561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
634661847f8eSopenharmony_ci     * @crossplatform
634761847f8eSopenharmony_ci     * @atomicservice
634861847f8eSopenharmony_ci     * @since 11
634961847f8eSopenharmony_ci     */
635061847f8eSopenharmony_ci    /**
635161847f8eSopenharmony_ci     * Image flipping. This method uses a promise to return the result.
635261847f8eSopenharmony_ci     *
635361847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
635461847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
635561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
635661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
635761847f8eSopenharmony_ci     * @crossplatform
635861847f8eSopenharmony_ci     * @form
635961847f8eSopenharmony_ci     * @atomicservice
636061847f8eSopenharmony_ci     * @since 12
636161847f8eSopenharmony_ci     */
636261847f8eSopenharmony_ci    flip(horizontal: boolean, vertical: boolean): Promise<void>;
636361847f8eSopenharmony_ci
636461847f8eSopenharmony_ci    /**
636561847f8eSopenharmony_ci     * Image flipping.
636661847f8eSopenharmony_ci     *
636761847f8eSopenharmony_ci     * @param { boolean } horizontal Is flip in horizontal.
636861847f8eSopenharmony_ci     * @param { boolean } vertical Is flip in vertical.
636961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
637061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
637161847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
637261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
637361847f8eSopenharmony_ci     * @crossplatform
637461847f8eSopenharmony_ci     * @atomicservice
637561847f8eSopenharmony_ci     * @since 12
637661847f8eSopenharmony_ci     */
637761847f8eSopenharmony_ci    flipSync(horizontal: boolean, vertical: boolean): void;
637861847f8eSopenharmony_ci
637961847f8eSopenharmony_ci    /**
638061847f8eSopenharmony_ci     * Crop the image. This method uses a callback to return the operation result.
638161847f8eSopenharmony_ci     *
638261847f8eSopenharmony_ci     * @param { Region } region The region to crop.
638361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
638461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
638561847f8eSopenharmony_ci     * @since 9
638661847f8eSopenharmony_ci     */
638761847f8eSopenharmony_ci    /**
638861847f8eSopenharmony_ci     * Crop the image. This method uses a callback to return the operation result.
638961847f8eSopenharmony_ci     *
639061847f8eSopenharmony_ci     * @param { Region } region The region to crop.
639161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
639261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
639361847f8eSopenharmony_ci     * @crossplatform
639461847f8eSopenharmony_ci     * @since 10
639561847f8eSopenharmony_ci     */
639661847f8eSopenharmony_ci    /**
639761847f8eSopenharmony_ci     * Crop the image. This method uses a callback to return the operation result.
639861847f8eSopenharmony_ci     *
639961847f8eSopenharmony_ci     * @param { Region } region The region to crop.
640061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
640161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
640261847f8eSopenharmony_ci     * @crossplatform
640361847f8eSopenharmony_ci     * @atomicservice
640461847f8eSopenharmony_ci     * @since 11
640561847f8eSopenharmony_ci     */
640661847f8eSopenharmony_ci    /**
640761847f8eSopenharmony_ci     * Crop the image. This method uses a callback to return the operation result.
640861847f8eSopenharmony_ci     *
640961847f8eSopenharmony_ci     * @param { Region } region The region to crop.
641061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result. If the operation fails, an error message is returned.
641161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
641261847f8eSopenharmony_ci     * @crossplatform
641361847f8eSopenharmony_ci     * @form
641461847f8eSopenharmony_ci     * @atomicservice
641561847f8eSopenharmony_ci     * @since 12
641661847f8eSopenharmony_ci     */
641761847f8eSopenharmony_ci    crop(region: Region, callback: AsyncCallback<void>): void;
641861847f8eSopenharmony_ci
641961847f8eSopenharmony_ci    /**
642061847f8eSopenharmony_ci     * Crop the image. This method uses a promise to return the result.
642161847f8eSopenharmony_ci     *
642261847f8eSopenharmony_ci     * @param { Region } region The region to crop.
642361847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
642461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
642561847f8eSopenharmony_ci     * @since 9
642661847f8eSopenharmony_ci     */
642761847f8eSopenharmony_ci    /**
642861847f8eSopenharmony_ci     * Crop the image. This method uses a promise to return the result.
642961847f8eSopenharmony_ci     *
643061847f8eSopenharmony_ci     * @param { Region } region The region to crop.
643161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
643261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
643361847f8eSopenharmony_ci     * @crossplatform
643461847f8eSopenharmony_ci     * @since 10
643561847f8eSopenharmony_ci     */
643661847f8eSopenharmony_ci    /**
643761847f8eSopenharmony_ci     * Crop the image. This method uses a promise to return the result.
643861847f8eSopenharmony_ci     *
643961847f8eSopenharmony_ci     * @param { Region } region The region to crop.
644061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
644161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
644261847f8eSopenharmony_ci     * @crossplatform
644361847f8eSopenharmony_ci     * @atomicservice
644461847f8eSopenharmony_ci     * @since 11
644561847f8eSopenharmony_ci     */
644661847f8eSopenharmony_ci    /**
644761847f8eSopenharmony_ci     * Crop the image. This method uses a promise to return the result.
644861847f8eSopenharmony_ci     *
644961847f8eSopenharmony_ci     * @param { Region } region The region to crop.
645061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
645161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
645261847f8eSopenharmony_ci     * @crossplatform
645361847f8eSopenharmony_ci     * @form
645461847f8eSopenharmony_ci     * @atomicservice
645561847f8eSopenharmony_ci     * @since 12
645661847f8eSopenharmony_ci     */
645761847f8eSopenharmony_ci    crop(region: Region): Promise<void>;
645861847f8eSopenharmony_ci
645961847f8eSopenharmony_ci    /**
646061847f8eSopenharmony_ci     * Crop the image.
646161847f8eSopenharmony_ci     *
646261847f8eSopenharmony_ci     * @param { Region } region The region to crop.
646361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
646461847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
646561847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
646661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
646761847f8eSopenharmony_ci     * @crossplatform
646861847f8eSopenharmony_ci     * @atomicservice
646961847f8eSopenharmony_ci     * @since 12
647061847f8eSopenharmony_ci     */
647161847f8eSopenharmony_ci    cropSync(region: Region): void;
647261847f8eSopenharmony_ci
647361847f8eSopenharmony_ci    /**
647461847f8eSopenharmony_ci     * Get color space of pixel map.
647561847f8eSopenharmony_ci     *
647661847f8eSopenharmony_ci     * @returns { colorSpaceManager.ColorSpaceManager } If the operation fails, an error message is returned.
647761847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
647861847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
647961847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
648061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
648161847f8eSopenharmony_ci     * @since 10
648261847f8eSopenharmony_ci     */
648361847f8eSopenharmony_ci    /**
648461847f8eSopenharmony_ci     * Get color space of pixel map.
648561847f8eSopenharmony_ci     *
648661847f8eSopenharmony_ci     * @returns { colorSpaceManager.ColorSpaceManager } If the operation fails, an error message is returned.
648761847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - If the image data abnormal.
648861847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - If the image data unsupport.
648961847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - If the image parameter invalid.
649061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
649161847f8eSopenharmony_ci     * @crossplatform  
649261847f8eSopenharmony_ci     * @since 11
649361847f8eSopenharmony_ci     */
649461847f8eSopenharmony_ci    getColorSpace(): colorSpaceManager.ColorSpaceManager;
649561847f8eSopenharmony_ci
649661847f8eSopenharmony_ci    /**
649761847f8eSopenharmony_ci     * Marshalling pixelmap and write into MessageSequence.
649861847f8eSopenharmony_ci     *
649961847f8eSopenharmony_ci     * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.
650061847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
650161847f8eSopenharmony_ci     * @throws { BusinessError } 62980097 - IPC error.
650261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
650361847f8eSopenharmony_ci     * @since 10
650461847f8eSopenharmony_ci     */
650561847f8eSopenharmony_ci    marshalling(sequence: rpc.MessageSequence): void;
650661847f8eSopenharmony_ci
650761847f8eSopenharmony_ci    /**
650861847f8eSopenharmony_ci     * Creates a PixelMap object based on MessageSequence parameter.
650961847f8eSopenharmony_ci     *
651061847f8eSopenharmony_ci     * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.
651161847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
651261847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
651361847f8eSopenharmony_ci     * @throws { BusinessError } 62980097 - IPC error.
651461847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
651561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
651661847f8eSopenharmony_ci     * @since 10
651761847f8eSopenharmony_ci     */
651861847f8eSopenharmony_ci    unmarshalling(sequence: rpc.MessageSequence): Promise<PixelMap>;
651961847f8eSopenharmony_ci
652061847f8eSopenharmony_ci    /**
652161847f8eSopenharmony_ci     * Set color space of pixel map.
652261847f8eSopenharmony_ci     * 
652361847f8eSopenharmony_ci     * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.
652461847f8eSopenharmony_ci     * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or
652561847f8eSopenharmony_ci     * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.
652661847f8eSopenharmony_ci     *
652761847f8eSopenharmony_ci     * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.
652861847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
652961847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
653061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
653161847f8eSopenharmony_ci     * @since 10
653261847f8eSopenharmony_ci     */
653361847f8eSopenharmony_ci    /**
653461847f8eSopenharmony_ci     * Set color space of pixel map.
653561847f8eSopenharmony_ci     * 
653661847f8eSopenharmony_ci     * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.
653761847f8eSopenharmony_ci     * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or
653861847f8eSopenharmony_ci     * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.
653961847f8eSopenharmony_ci     *
654061847f8eSopenharmony_ci     * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.
654161847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - If the operation invalid.
654261847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - If the image parameter invalid.
654361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
654461847f8eSopenharmony_ci     * @crossplatform 
654561847f8eSopenharmony_ci     * @since 11
654661847f8eSopenharmony_ci     */
654761847f8eSopenharmony_ci     /**
654861847f8eSopenharmony_ci     * Set color space of pixel map.
654961847f8eSopenharmony_ci     * 
655061847f8eSopenharmony_ci     * This method is only used to set the colorspace property of pixelmap, while all pixel data remains the same after calling this method.
655161847f8eSopenharmony_ci     * If you want to change colorspace for all pixels, use method {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager)} or
655261847f8eSopenharmony_ci     * {@Link #applyColorSpace(colorSpaceManager.ColorSpaceManager, AsyncCallback<void>)}.
655361847f8eSopenharmony_ci     *
655461847f8eSopenharmony_ci     * @param { colorSpaceManager.ColorSpaceManager } colorSpace The color space for pixel map.
655561847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
655661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - If the image parameter invalid.
655761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
655861847f8eSopenharmony_ci     * @crossplatform 
655961847f8eSopenharmony_ci     * @since 12
656061847f8eSopenharmony_ci     */
656161847f8eSopenharmony_ci    setColorSpace(colorSpace: colorSpaceManager.ColorSpaceManager): void;
656261847f8eSopenharmony_ci
656361847f8eSopenharmony_ci    /**
656461847f8eSopenharmony_ci     * Is it stride Alignment
656561847f8eSopenharmony_ci     *
656661847f8eSopenharmony_ci     * @type { boolean }
656761847f8eSopenharmony_ci     * @readonly
656861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
656961847f8eSopenharmony_ci     * @since 11
657061847f8eSopenharmony_ci     */
657161847f8eSopenharmony_ci    readonly isStrideAlignment: boolean;
657261847f8eSopenharmony_ci
657361847f8eSopenharmony_ci     /**
657461847f8eSopenharmony_ci     * Apply color space of pixel map, the pixels will be changed by input color space. This method uses a callback to return the operation result.
657561847f8eSopenharmony_ci     * 
657661847f8eSopenharmony_ci     * This method is used to change color space of pixelmap. Pixel data will be changed by calling this method.
657761847f8eSopenharmony_ci     * If you want to set the colorspace property of pixelmap only, use method {@Link #setColorSpace(colorSpaceManager.ColorSpaceManager)}.
657861847f8eSopenharmony_ci     *
657961847f8eSopenharmony_ci     * @param { colorSpaceManager.ColorSpaceManager } targetColorSpace - The color space for pixel map.
658061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback - Callback used to return the operation result. If the operation fails, an error message is returned.
658161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
658261847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
658361847f8eSopenharmony_ci     * @throws { BusinessError } 62980104 - Failed to initialize the internal object.
658461847f8eSopenharmony_ci     * @throws { BusinessError } 62980108 - Failed to convert the color space.
658561847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
658661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
658761847f8eSopenharmony_ci     * @crossplatform
658861847f8eSopenharmony_ci     * @since 11
658961847f8eSopenharmony_ci     */
659061847f8eSopenharmony_ci    applyColorSpace(targetColorSpace: colorSpaceManager.ColorSpaceManager, callback: AsyncCallback<void>): void;
659161847f8eSopenharmony_ci
659261847f8eSopenharmony_ci    /**
659361847f8eSopenharmony_ci     * Apply color space of pixel map, the pixels will be changed by input color space. This method uses a promise to return the result.
659461847f8eSopenharmony_ci     * 
659561847f8eSopenharmony_ci     * This method is used to change color space of pixelmap. Pixel data will be changed by calling this method.
659661847f8eSopenharmony_ci     * If you want to set the colorspace property of pixelmap only, use method {@Link #setColorSpace(colorSpaceManager.ColorSpaceManager)}.
659761847f8eSopenharmony_ci     *
659861847f8eSopenharmony_ci     * @param { colorSpaceManager.ColorSpaceManager } targetColorSpace - The color space for pixel map.
659961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
660061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
660161847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
660261847f8eSopenharmony_ci     * @throws { BusinessError } 62980104 - Failed to initialize the internal object.
660361847f8eSopenharmony_ci     * @throws { BusinessError } 62980108 - Failed to convert the color space.
660461847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
660561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
660661847f8eSopenharmony_ci     * @crossplatform
660761847f8eSopenharmony_ci     * @since 11
660861847f8eSopenharmony_ci     */
660961847f8eSopenharmony_ci    applyColorSpace(targetColorSpace: colorSpaceManager.ColorSpaceManager): Promise<void>;
661061847f8eSopenharmony_ci
661161847f8eSopenharmony_ci    /**
661261847f8eSopenharmony_ci     * The method is used for the transformation of the image formats. Pixel data will be changed by calling this method.
661361847f8eSopenharmony_ci     *
661461847f8eSopenharmony_ci     * @param { PixelMapFormat } targetPixelFormat - The pixel format for pixelmap conversion.
661561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an error message is returned.
661661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid input parameter.
661761847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
661861847f8eSopenharmony_ci     * @throws { BusinessError } 62980274 - The conversion failed.
661961847f8eSopenharmony_ci     * @throws { BusinessError } 62980276 - The type to be converted is an unsupported target pixel format.
662061847f8eSopenharmony_ci     * @throws { BusinessError } 62980178 - Failed to create the pixelmap.
662161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
662261847f8eSopenharmony_ci     * @since 12
662361847f8eSopenharmony_ci     */
662461847f8eSopenharmony_ci     convertPixelFormat(targetPixelFormat: PixelMapFormat): Promise<void>;
662561847f8eSopenharmony_ci     
662661847f8eSopenharmony_ci     /**
662761847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a callback to return the result.
662861847f8eSopenharmony_ci     *
662961847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.
663061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
663161847f8eSopenharmony_ci     * @since 7
663261847f8eSopenharmony_ci     */
663361847f8eSopenharmony_ci    /**
663461847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a callback to return the result.
663561847f8eSopenharmony_ci     *
663661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.
663761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
663861847f8eSopenharmony_ci     * @crossplatform
663961847f8eSopenharmony_ci     * @since 10
664061847f8eSopenharmony_ci     */
664161847f8eSopenharmony_ci    /**
664261847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a callback to return the result.
664361847f8eSopenharmony_ci     *
664461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.
664561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
664661847f8eSopenharmony_ci     * @crossplatform
664761847f8eSopenharmony_ci     * @atomicservice
664861847f8eSopenharmony_ci     * @since 11
664961847f8eSopenharmony_ci     */
665061847f8eSopenharmony_ci    /**
665161847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a callback to return the result.
665261847f8eSopenharmony_ci     *
665361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback invoked for instance release. If the operation fails, an error message is returned.
665461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
665561847f8eSopenharmony_ci     * @crossplatform
665661847f8eSopenharmony_ci     * @form
665761847f8eSopenharmony_ci     * @atomicservice
665861847f8eSopenharmony_ci     * @since 12
665961847f8eSopenharmony_ci     */
666061847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
666161847f8eSopenharmony_ci
666261847f8eSopenharmony_ci    /**
666361847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a promise to return the result.
666461847f8eSopenharmony_ci     *
666561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.
666661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
666761847f8eSopenharmony_ci     * @since 7
666861847f8eSopenharmony_ci     */
666961847f8eSopenharmony_ci    /**
667061847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a promise to return the result.
667161847f8eSopenharmony_ci     *
667261847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.
667361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
667461847f8eSopenharmony_ci     * @crossplatform
667561847f8eSopenharmony_ci     * @since 10
667661847f8eSopenharmony_ci     */
667761847f8eSopenharmony_ci    /**
667861847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a promise to return the result.
667961847f8eSopenharmony_ci     *
668061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.
668161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
668261847f8eSopenharmony_ci     * @crossplatform
668361847f8eSopenharmony_ci     * @atomicservice
668461847f8eSopenharmony_ci     * @since 11
668561847f8eSopenharmony_ci     */
668661847f8eSopenharmony_ci    /**
668761847f8eSopenharmony_ci     * Releases this PixelMap object. This method uses a promise to return the result.
668861847f8eSopenharmony_ci     *
668961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails, an error message is returned.
669061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
669161847f8eSopenharmony_ci     * @crossplatform
669261847f8eSopenharmony_ci     * @form
669361847f8eSopenharmony_ci     * @atomicservice
669461847f8eSopenharmony_ci     * @since 12
669561847f8eSopenharmony_ci     */
669661847f8eSopenharmony_ci    release(): Promise<void>;
669761847f8eSopenharmony_ci
669861847f8eSopenharmony_ci   /**
669961847f8eSopenharmony_ci     * Enables the PixelMap object to be transferred across threads and detaches the reference from the current
670061847f8eSopenharmony_ci     * thread upon transfer.
670161847f8eSopenharmony_ci     *
670261847f8eSopenharmony_ci     * @param { boolean } detached A boolean value indicating whether to enable or disable the transfer and
670361847f8eSopenharmony_ci     * detachment feature.
670461847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource Unavailable.
670561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
670661847f8eSopenharmony_ci     * @since 12
670761847f8eSopenharmony_ci     */
670861847f8eSopenharmony_ci    setTransferDetached(detached: boolean): void;
670961847f8eSopenharmony_ci
671061847f8eSopenharmony_ci    /**
671161847f8eSopenharmony_ci     * Get metadata.
671261847f8eSopenharmony_ci     * 
671361847f8eSopenharmony_ci     * @param { HdrMetadataKey } key Type of metadata.
671461847f8eSopenharmony_ci     * @returns { HdrMetadataValue } Returns the value of metadata.
671561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
671661847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
671761847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource unavailable.
671861847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
671961847f8eSopenharmony_ci     * @throws { BusinessError } 62980302 - Memory copy failed.
672061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
672161847f8eSopenharmony_ci     * @since 12
672261847f8eSopenharmony_ci     */
672361847f8eSopenharmony_ci    getMetadata(key: HdrMetadataKey): HdrMetadataValue;
672461847f8eSopenharmony_ci
672561847f8eSopenharmony_ci    /**
672661847f8eSopenharmony_ci     * Set pixelmap memory name.
672761847f8eSopenharmony_ci     * 
672861847f8eSopenharmony_ci     * @param { string } name The name of the memory that needs to be set
672961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.The length of the input parameter is too long.
673061847f8eSopenharmony_ci     * 2.Parameter verification failed.
673161847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource unavailable.
673261847f8eSopenharmony_ci     * @throws { BusinessError } 62980286 - Memory format not supported.
673361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
673461847f8eSopenharmony_ci     * @since 13
673561847f8eSopenharmony_ci     */
673661847f8eSopenharmony_ci    setMemoryNameSync(name: string): void;
673761847f8eSopenharmony_ci
673861847f8eSopenharmony_ci    /**
673961847f8eSopenharmony_ci     * Set metadata.
674061847f8eSopenharmony_ci     * 
674161847f8eSopenharmony_ci     * @param { HdrMetadataKey } key Type of metadata.
674261847f8eSopenharmony_ci     * @param { HdrMetadataValue } value Value of metadata.
674361847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the instance release result. If the operation fails,
674461847f8eSopenharmony_ci     * an error message is returned.
674561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
674661847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
674761847f8eSopenharmony_ci     * @throws { BusinessError } 501 - Resource unavailable.
674861847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
674961847f8eSopenharmony_ci     * @throws { BusinessError } 62980302 - Memory copy failed.
675061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
675161847f8eSopenharmony_ci     * @since 12
675261847f8eSopenharmony_ci     */
675361847f8eSopenharmony_ci    setMetadata(key: HdrMetadataKey, value: HdrMetadataValue): Promise<void>;
675461847f8eSopenharmony_ci  }
675561847f8eSopenharmony_ci
675661847f8eSopenharmony_ci  /**
675761847f8eSopenharmony_ci   * Picture instance.
675861847f8eSopenharmony_ci   *
675961847f8eSopenharmony_ci   * @typedef Picture
676061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
676161847f8eSopenharmony_ci   * @since 13
676261847f8eSopenharmony_ci   */
676361847f8eSopenharmony_ci  interface Picture {
676461847f8eSopenharmony_ci    /**
676561847f8eSopenharmony_ci     * Obtains the pixel map of the main image.
676661847f8eSopenharmony_ci     *
676761847f8eSopenharmony_ci     * @returns { PixelMap } Returns the pixel map.
676861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
676961847f8eSopenharmony_ci     * @since 13
677061847f8eSopenharmony_ci     */
677161847f8eSopenharmony_ci    getMainPixelmap(): PixelMap;
677261847f8eSopenharmony_ci
677361847f8eSopenharmony_ci    /**
677461847f8eSopenharmony_ci     * Obtains the hdr pixel map. This method uses a promise to return the PixelMap object.
677561847f8eSopenharmony_ci     *
677661847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
677761847f8eSopenharmony_ci     * @throws { BusinessError } 7600901 - Unknown error.
677861847f8eSopenharmony_ci     * @throws { BusinessError } 7600201 - Unsupported operation.
677961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
678061847f8eSopenharmony_ci     * @since 13
678161847f8eSopenharmony_ci     */
678261847f8eSopenharmony_ci    getHdrComposedPixelmap(): Promise<PixelMap>;
678361847f8eSopenharmony_ci
678461847f8eSopenharmony_ci    /**
678561847f8eSopenharmony_ci     * Obtains the gain map pixel map.
678661847f8eSopenharmony_ci     * @returns { PixelMap | null } Returns the pixel map if the operation is successful; returns null otherwise.
678761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
678861847f8eSopenharmony_ci     * @since 13
678961847f8eSopenharmony_ci     */
679061847f8eSopenharmony_ci    getGainmapPixelmap(): PixelMap | null;
679161847f8eSopenharmony_ci
679261847f8eSopenharmony_ci    /**
679361847f8eSopenharmony_ci     * Set auxiliary picture.
679461847f8eSopenharmony_ci     *
679561847f8eSopenharmony_ci     * @param { AuxiliaryPictureType } type The type of auxiliary picture.
679661847f8eSopenharmony_ci     * @param { AuxiliaryPicture } auxiliaryPicture AuxiliaryPicture object.
679761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
679861847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
679961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
680061847f8eSopenharmony_ci     * @since 13
680161847f8eSopenharmony_ci     */
680261847f8eSopenharmony_ci    setAuxiliaryPicture(type: AuxiliaryPictureType, auxiliaryPicture: AuxiliaryPicture): void;
680361847f8eSopenharmony_ci
680461847f8eSopenharmony_ci    /**
680561847f8eSopenharmony_ci     * Obtains the auxiliary picture based on type.
680661847f8eSopenharmony_ci     *
680761847f8eSopenharmony_ci     * @param { AuxiliaryPictureType } type The type of auxiliary picture.
680861847f8eSopenharmony_ci     * @returns { AuxiliaryPicture | null } Returns the auxiliary picture object.
680961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
681061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
681161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
681261847f8eSopenharmony_ci     * @since 13
681361847f8eSopenharmony_ci     */
681461847f8eSopenharmony_ci    getAuxiliaryPicture(type: AuxiliaryPictureType): AuxiliaryPicture | null;
681561847f8eSopenharmony_ci
681661847f8eSopenharmony_ci    /**
681761847f8eSopenharmony_ci     * Set the metadata of main picture.
681861847f8eSopenharmony_ci     *
681961847f8eSopenharmony_ci     * @param { MetadataType } metadataType The type of metadata.
682061847f8eSopenharmony_ci     * @param { Metadata } metadata The metadata of main picture.
682161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
682261847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
682361847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
682461847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: Unsupported metadata type.
682561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
682661847f8eSopenharmony_ci     * @since 13
682761847f8eSopenharmony_ci     */
682861847f8eSopenharmony_ci    setMetadata(metadataType: MetadataType, metadata: Metadata): Promise<void>
682961847f8eSopenharmony_ci
683061847f8eSopenharmony_ci    /**
683161847f8eSopenharmony_ci     * Obtains the metadata of main picture.
683261847f8eSopenharmony_ci     *
683361847f8eSopenharmony_ci     * @param { MetadataType } metadataType The type of metadata.
683461847f8eSopenharmony_ci     * @returns { Promise<Metadata> } Return the metadata of main picture.
683561847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
683661847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
683761847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: Unsupported metadata type.
683861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
683961847f8eSopenharmony_ci     * @since 13
684061847f8eSopenharmony_ci     */
684161847f8eSopenharmony_ci    getMetadata(metadataType: MetadataType): Promise<Metadata>
684261847f8eSopenharmony_ci
684361847f8eSopenharmony_ci    /**
684461847f8eSopenharmony_ci     * Marshalling picture and write into MessageSequence.
684561847f8eSopenharmony_ci     *
684661847f8eSopenharmony_ci     * @param { rpc.MessageSequence } sequence rpc.MessageSequence parameter.
684761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
684861847f8eSopenharmony_ci     * 2.Incorrect parameter types; 3.Parameter verification failed.
684961847f8eSopenharmony_ci     * @throws { BusinessError } 62980097 - IPC error.
685061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
685161847f8eSopenharmony_ci     * @since 13
685261847f8eSopenharmony_ci     */
685361847f8eSopenharmony_ci    marshalling(sequence: rpc.MessageSequence): void
685461847f8eSopenharmony_ci
685561847f8eSopenharmony_ci    /**
685661847f8eSopenharmony_ci     * Releases this Picture object.
685761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
685861847f8eSopenharmony_ci     * @since 13
685961847f8eSopenharmony_ci     */
686061847f8eSopenharmony_ci    release(): void
686161847f8eSopenharmony_ci  }
686261847f8eSopenharmony_ci
686361847f8eSopenharmony_ci  /**
686461847f8eSopenharmony_ci   * Create a Picture object by the pixel map of the main image.
686561847f8eSopenharmony_ci   *
686661847f8eSopenharmony_ci   * @param { PixelMap } mainPixelmap The pixel map of the main image.
686761847f8eSopenharmony_ci   * @returns { Picture } Returns the Picture object.
686861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
686961847f8eSopenharmony_ci   * 2.Incorrect parameter types; 3.Parameter verification failed.
687061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
687161847f8eSopenharmony_ci   * @since 13
687261847f8eSopenharmony_ci   */
687361847f8eSopenharmony_ci  function createPicture(mainPixelmap : PixelMap): Picture;
687461847f8eSopenharmony_ci
687561847f8eSopenharmony_ci  /**
687661847f8eSopenharmony_ci   * Creates a Picture object based on MessageSequence parameter.
687761847f8eSopenharmony_ci   *
687861847f8eSopenharmony_ci   * @param { rpc.MessageSequence } sequence - rpc.MessageSequence parameter.
687961847f8eSopenharmony_ci   * @returns { Picture } Returns the Picture object.
688061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
688161847f8eSopenharmony_ci   * 2.Incorrect parameter types; 3.Parameter verification failed.
688261847f8eSopenharmony_ci   * @throws { BusinessError } 62980097 - IPC error.
688361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
688461847f8eSopenharmony_ci   * @since 13
688561847f8eSopenharmony_ci   */
688661847f8eSopenharmony_ci  function createPictureFromParcel(sequence: rpc.MessageSequence): Picture;
688761847f8eSopenharmony_ci
688861847f8eSopenharmony_ci  /**
688961847f8eSopenharmony_ci   * Create a AuxiliaryPicture object by data buffer.
689061847f8eSopenharmony_ci   *
689161847f8eSopenharmony_ci   * @param { ArrayBuffer } buffer The image data buffer.
689261847f8eSopenharmony_ci   * @param { Size } size The size of auxiliary picture.
689361847f8eSopenharmony_ci   * @param { AuxiliaryPictureType } type The type of auxiliary picture.
689461847f8eSopenharmony_ci   * @returns { AuxiliaryPicture } The AuxiliaryPicture object.
689561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
689661847f8eSopenharmony_ci   * 2.Incorrect parameter types; 3.Parameter verification failed.
689761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
689861847f8eSopenharmony_ci   * @since 13
689961847f8eSopenharmony_ci   */
690061847f8eSopenharmony_ci  function createAuxiliaryPicture(buffer: ArrayBuffer, size: Size, type: AuxiliaryPictureType): AuxiliaryPicture;
690161847f8eSopenharmony_ci
690261847f8eSopenharmony_ci  /**
690361847f8eSopenharmony_ci   * AuxiliaryPicture instance.
690461847f8eSopenharmony_ci   *
690561847f8eSopenharmony_ci   * @typedef AuxiliaryPicture
690661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
690761847f8eSopenharmony_ci   * @since 13
690861847f8eSopenharmony_ci   */
690961847f8eSopenharmony_ci  interface AuxiliaryPicture {
691061847f8eSopenharmony_ci    /**
691161847f8eSopenharmony_ci     * Reads auxiliary picture data in an ArrayBuffer and writes the data to a AuxiliaryPicture object. This method
691261847f8eSopenharmony_ci     * uses a promise to return the result.
691361847f8eSopenharmony_ci     *
691461847f8eSopenharmony_ci     * @param { ArrayBuffer } data A buffer from which the auxiliary picture data will be read.
691561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an
691661847f8eSopenharmony_ci     * error message is returned.
691761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
691861847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
691961847f8eSopenharmony_ci     * @throws { BusinessError } 7600301 - Memory alloc failed.
692061847f8eSopenharmony_ci     * @throws { BusinessError } 7600302 - Memory copy failed.
692161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
692261847f8eSopenharmony_ci     * @since 13
692361847f8eSopenharmony_ci     */
692461847f8eSopenharmony_ci    writePixelsFromBuffer(data: ArrayBuffer): Promise<void>;
692561847f8eSopenharmony_ci
692661847f8eSopenharmony_ci    /**
692761847f8eSopenharmony_ci     * Reads image pixel map data and writes the data to an ArrayBuffer. This method uses
692861847f8eSopenharmony_ci     * a promise to return the result.
692961847f8eSopenharmony_ci     *
693061847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the pixel map data.
693161847f8eSopenharmony_ci     * @throws { BusinessError } 7600301 - Memory alloc failed.
693261847f8eSopenharmony_ci     * @throws { BusinessError } 7600302 - Memory copy failed.
693361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
693461847f8eSopenharmony_ci     * @since 13
693561847f8eSopenharmony_ci     */
693661847f8eSopenharmony_ci    readPixelsToBuffer(): Promise<ArrayBuffer>;
693761847f8eSopenharmony_ci
693861847f8eSopenharmony_ci    /**
693961847f8eSopenharmony_ci     * Obtains the type of auxiliary picture.
694061847f8eSopenharmony_ci     *
694161847f8eSopenharmony_ci     * @returns { AuxiliaryPictureType } Returns the type of auxiliary picture.
694261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
694361847f8eSopenharmony_ci     * @since 13
694461847f8eSopenharmony_ci     */
694561847f8eSopenharmony_ci    getType(): AuxiliaryPictureType;
694661847f8eSopenharmony_ci
694761847f8eSopenharmony_ci    /**
694861847f8eSopenharmony_ci     * Set the metadata of auxiliary picture.
694961847f8eSopenharmony_ci     *
695061847f8eSopenharmony_ci     * @param { MetadataType } metadataType The type of metadata.
695161847f8eSopenharmony_ci     * @param { Metadata } metadata The metadata of auxiliary picture.
695261847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
695361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
695461847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
695561847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The
695661847f8eSopenharmony_ci     * metadata type does not match the auxiliary picture type.
695761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
695861847f8eSopenharmony_ci     * @since 13
695961847f8eSopenharmony_ci     */
696061847f8eSopenharmony_ci    setMetadata(metadataType: MetadataType, metadata: Metadata): Promise<void>
696161847f8eSopenharmony_ci
696261847f8eSopenharmony_ci    /**
696361847f8eSopenharmony_ci     * Obtains the metadata of auxiliary picture.
696461847f8eSopenharmony_ci     *
696561847f8eSopenharmony_ci     * @param { MetadataType } metadataType The type of metadata.
696661847f8eSopenharmony_ci     * @returns { Promise<Metadata> } Return the metadata of auxiliary picture.
696761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
696861847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
696961847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The
697061847f8eSopenharmony_ci     * metadata type does not match the auxiliary picture type.
697161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
697261847f8eSopenharmony_ci     * @since 13
697361847f8eSopenharmony_ci     */
697461847f8eSopenharmony_ci    getMetadata(metadataType: MetadataType): Promise<Metadata>
697561847f8eSopenharmony_ci
697661847f8eSopenharmony_ci    /**
697761847f8eSopenharmony_ci     * Obtains the information about this auxiliary picture.
697861847f8eSopenharmony_ci     *
697961847f8eSopenharmony_ci     * @returns { AuxiliaryPictureInfo } Returns the auxiliary picture information. If the operation fails, an error
698061847f8eSopenharmony_ci     * message is returned.
698161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
698261847f8eSopenharmony_ci     * @since 13
698361847f8eSopenharmony_ci     */
698461847f8eSopenharmony_ci    getAuxiliaryPictureInfo(): AuxiliaryPictureInfo;
698561847f8eSopenharmony_ci
698661847f8eSopenharmony_ci    /**
698761847f8eSopenharmony_ci     * Set the information about this auxiliary picture.
698861847f8eSopenharmony_ci     *
698961847f8eSopenharmony_ci     * @param { AuxiliaryPictureInfo } info the auxiliary picture information.
699061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
699161847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
699261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
699361847f8eSopenharmony_ci     * @since 13
699461847f8eSopenharmony_ci     */
699561847f8eSopenharmony_ci    setAuxiliaryPictureInfo(info: AuxiliaryPictureInfo): void
699661847f8eSopenharmony_ci
699761847f8eSopenharmony_ci    /**
699861847f8eSopenharmony_ci     * Releases this AuxiliaryPicture object.
699961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
700061847f8eSopenharmony_ci     * @since 13
700161847f8eSopenharmony_ci     */
700261847f8eSopenharmony_ci    release():void
700361847f8eSopenharmony_ci  }
700461847f8eSopenharmony_ci
700561847f8eSopenharmony_ci  /**
700661847f8eSopenharmony_ci   * Enumerates auxiliary picture type.
700761847f8eSopenharmony_ci   *
700861847f8eSopenharmony_ci   * @enum { number }
700961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
701061847f8eSopenharmony_ci   * @since 13
701161847f8eSopenharmony_ci   */
701261847f8eSopenharmony_ci  enum AuxiliaryPictureType {
701361847f8eSopenharmony_ci    /**
701461847f8eSopenharmony_ci     * Gain map.
701561847f8eSopenharmony_ci     *
701661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
701761847f8eSopenharmony_ci     * @since 13
701861847f8eSopenharmony_ci     */
701961847f8eSopenharmony_ci    GAINMAP = 1,
702061847f8eSopenharmony_ci
702161847f8eSopenharmony_ci    /**
702261847f8eSopenharmony_ci     * Depth map.
702361847f8eSopenharmony_ci     *
702461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
702561847f8eSopenharmony_ci     * @since 13
702661847f8eSopenharmony_ci     */
702761847f8eSopenharmony_ci    DEPTH_MAP = 2,
702861847f8eSopenharmony_ci
702961847f8eSopenharmony_ci    /**
703061847f8eSopenharmony_ci     * Unrefocus map.
703161847f8eSopenharmony_ci     *
703261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
703361847f8eSopenharmony_ci     * @since 13
703461847f8eSopenharmony_ci     */
703561847f8eSopenharmony_ci    UNREFOCUS_MAP = 3,
703661847f8eSopenharmony_ci
703761847f8eSopenharmony_ci    /**
703861847f8eSopenharmony_ci     * Linear map.
703961847f8eSopenharmony_ci     *
704061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
704161847f8eSopenharmony_ci     * @since 13
704261847f8eSopenharmony_ci     */
704361847f8eSopenharmony_ci    LINEAR_MAP = 4,
704461847f8eSopenharmony_ci
704561847f8eSopenharmony_ci    /**
704661847f8eSopenharmony_ci     * Fragment map.
704761847f8eSopenharmony_ci     *
704861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
704961847f8eSopenharmony_ci     * @since 13
705061847f8eSopenharmony_ci     */
705161847f8eSopenharmony_ci    FRAGMENT_MAP = 5,
705261847f8eSopenharmony_ci  }
705361847f8eSopenharmony_ci
705461847f8eSopenharmony_ci  /**
705561847f8eSopenharmony_ci   * Enumerates metadata type.
705661847f8eSopenharmony_ci   *
705761847f8eSopenharmony_ci   * @enum { number }
705861847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
705961847f8eSopenharmony_ci   * @since 13
706061847f8eSopenharmony_ci   */
706161847f8eSopenharmony_ci  enum MetadataType {
706261847f8eSopenharmony_ci    /**
706361847f8eSopenharmony_ci     * EXIF metadata.
706461847f8eSopenharmony_ci     *
706561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
706661847f8eSopenharmony_ci     * @since 13
706761847f8eSopenharmony_ci     */
706861847f8eSopenharmony_ci    EXIF_METADATA = 1,
706961847f8eSopenharmony_ci
707061847f8eSopenharmony_ci    /**
707161847f8eSopenharmony_ci     * Fragment metadata. 
707261847f8eSopenharmony_ci     *
707361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
707461847f8eSopenharmony_ci     * @since 13
707561847f8eSopenharmony_ci     */
707661847f8eSopenharmony_ci    FRAGMENT_METADATA = 2,
707761847f8eSopenharmony_ci  }
707861847f8eSopenharmony_ci
707961847f8eSopenharmony_ci  /**
708061847f8eSopenharmony_ci   * Metadata instance.
708161847f8eSopenharmony_ci   *
708261847f8eSopenharmony_ci   * @typedef Metadata
708361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
708461847f8eSopenharmony_ci   * @since 13
708561847f8eSopenharmony_ci   */
708661847f8eSopenharmony_ci  interface Metadata {
708761847f8eSopenharmony_ci    /**
708861847f8eSopenharmony_ci     * Obtains the value of properties in an image. This method uses a promise to return the property values in array
708961847f8eSopenharmony_ci     * of records.
709061847f8eSopenharmony_ci     *
709161847f8eSopenharmony_ci     * @param { Array<string> } key Name of the properties whose value is to be obtained.
709261847f8eSopenharmony_ci     * @returns { Promise<Record<string, string | null>> } Array of Records instance used to return the property values.
709361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
709461847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
709561847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The
709661847f8eSopenharmony_ci     * metadata type does not match the auxiliary picture type.
709761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
709861847f8eSopenharmony_ci     * @since 13
709961847f8eSopenharmony_ci     */
710061847f8eSopenharmony_ci    getProperties(key: Array<string>): Promise<Record<string, string | null>>
710161847f8eSopenharmony_ci
710261847f8eSopenharmony_ci    /**
710361847f8eSopenharmony_ci     * Modify the value of properties in an image with the specified keys.
710461847f8eSopenharmony_ci     *
710561847f8eSopenharmony_ci     * @param { Record<string, string | null> } records Array of the property Records whose values are to
710661847f8eSopenharmony_ci     * be modified.
710761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
710861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified.
710961847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
711061847f8eSopenharmony_ci     * @throws { BusinessError } 7600202 - Unsupported metadata. Possible causes: 1. Unsupported metadata type. 2. The
711161847f8eSopenharmony_ci     * metadata type does not match the auxiliary picture type.
711261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
711361847f8eSopenharmony_ci     * @since 13
711461847f8eSopenharmony_ci     */
711561847f8eSopenharmony_ci    setProperties(records: Record<string, string | null>): Promise<void>
711661847f8eSopenharmony_ci
711761847f8eSopenharmony_ci    /**
711861847f8eSopenharmony_ci     * Obtains the value of all properties in an image. This method uses a promise to return the property values
711961847f8eSopenharmony_ci     * in array of records.
712061847f8eSopenharmony_ci     *
712161847f8eSopenharmony_ci     * @returns { Promise<Record<string, string | null>> } Array of Records instance used to return the property values.
712261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
712361847f8eSopenharmony_ci     * @since 13
712461847f8eSopenharmony_ci     */
712561847f8eSopenharmony_ci    getAllProperties(): Promise<Record<string, string | null>>
712661847f8eSopenharmony_ci
712761847f8eSopenharmony_ci    /**
712861847f8eSopenharmony_ci     * Obtains a clone of metadata. This method uses a promise to return the metadata.
712961847f8eSopenharmony_ci     *
713061847f8eSopenharmony_ci     * @returns { Promise<Metadata> } A Promise instance used to return the metadata.
713161847f8eSopenharmony_ci     * @throws { BusinessError } 7600301 - Memory alloc failed.
713261847f8eSopenharmony_ci     * @throws { BusinessError } 7600302 - Memory copy failed.
713361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
713461847f8eSopenharmony_ci     * @since 13
713561847f8eSopenharmony_ci     */
713661847f8eSopenharmony_ci    clone(): Promise<Metadata>
713761847f8eSopenharmony_ci  }
713861847f8eSopenharmony_ci
713961847f8eSopenharmony_ci  /**
714061847f8eSopenharmony_ci   * Enumerates fragment map information types of an image.
714161847f8eSopenharmony_ci   *
714261847f8eSopenharmony_ci   * @enum { string }
714361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
714461847f8eSopenharmony_ci   * @since 13
714561847f8eSopenharmony_ci   */
714661847f8eSopenharmony_ci  enum FragmentMapPropertyKey {
714761847f8eSopenharmony_ci    /**
714861847f8eSopenharmony_ci     * The x-coordinate of the top left corner of the mark cup map in the original image.
714961847f8eSopenharmony_ci     *
715061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
715161847f8eSopenharmony_ci     * @since 13
715261847f8eSopenharmony_ci     */
715361847f8eSopenharmony_ci    X_IN_ORIGINAL = 'XInOriginal',
715461847f8eSopenharmony_ci
715561847f8eSopenharmony_ci    /**
715661847f8eSopenharmony_ci     * The y-coordinate of the top left corner of the mark cup map in the original image.
715761847f8eSopenharmony_ci     *
715861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
715961847f8eSopenharmony_ci     * @since 13
716061847f8eSopenharmony_ci     */
716161847f8eSopenharmony_ci    Y_IN_ORIGINAL = 'YInOriginal',
716261847f8eSopenharmony_ci
716361847f8eSopenharmony_ci    /**
716461847f8eSopenharmony_ci     * Mark cut map width.
716561847f8eSopenharmony_ci     *
716661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
716761847f8eSopenharmony_ci     * @since 13
716861847f8eSopenharmony_ci     */
716961847f8eSopenharmony_ci    WIDTH = 'FragmentImageWidth',
717061847f8eSopenharmony_ci
717161847f8eSopenharmony_ci    /**
717261847f8eSopenharmony_ci     * Mark cut map width.
717361847f8eSopenharmony_ci     *
717461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
717561847f8eSopenharmony_ci     * @since 13
717661847f8eSopenharmony_ci     */
717761847f8eSopenharmony_ci    HEIGHT = 'FragmentImageHeight'
717861847f8eSopenharmony_ci  }
717961847f8eSopenharmony_ci
718061847f8eSopenharmony_ci  /**
718161847f8eSopenharmony_ci   * Describes image decoding parameters.
718261847f8eSopenharmony_ci   *
718361847f8eSopenharmony_ci   * @typedef DecodingOptionsForPicture
718461847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
718561847f8eSopenharmony_ci   * @since 13
718661847f8eSopenharmony_ci   */
718761847f8eSopenharmony_ci  interface DecodingOptionsForPicture {
718861847f8eSopenharmony_ci    /**
718961847f8eSopenharmony_ci     * Expected set of auxiliary picture types, default to decoding all auxiliary pictures.
719061847f8eSopenharmony_ci     *
719161847f8eSopenharmony_ci     * @type { Array<AuxiliaryPictureType> }
719261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
719361847f8eSopenharmony_ci     * @since 13
719461847f8eSopenharmony_ci     */
719561847f8eSopenharmony_ci    desiredAuxiliaryPictures: Array<AuxiliaryPictureType>;
719661847f8eSopenharmony_ci  }
719761847f8eSopenharmony_ci
719861847f8eSopenharmony_ci   /**
719961847f8eSopenharmony_ci   * Describes auxiliary picture information.
720061847f8eSopenharmony_ci   *
720161847f8eSopenharmony_ci   * @typedef AuxiliaryPictureInfo
720261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
720361847f8eSopenharmony_ci   * @since 13
720461847f8eSopenharmony_ci   */
720561847f8eSopenharmony_ci  interface AuxiliaryPictureInfo {
720661847f8eSopenharmony_ci    /**
720761847f8eSopenharmony_ci     * Indicates auxiliary picture type.
720861847f8eSopenharmony_ci     *
720961847f8eSopenharmony_ci     * @type { AuxiliaryPictureType }
721061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
721161847f8eSopenharmony_ci     * @since 13
721261847f8eSopenharmony_ci     */
721361847f8eSopenharmony_ci    auxiliaryPictureType: AuxiliaryPictureType;
721461847f8eSopenharmony_ci
721561847f8eSopenharmony_ci    /**
721661847f8eSopenharmony_ci     * Indicates image dimensions specified by a {@link Size} interface.
721761847f8eSopenharmony_ci     *
721861847f8eSopenharmony_ci     * @type { Size }
721961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
722061847f8eSopenharmony_ci     * @since 13
722161847f8eSopenharmony_ci     */
722261847f8eSopenharmony_ci    size: Size;
722361847f8eSopenharmony_ci
722461847f8eSopenharmony_ci    /**
722561847f8eSopenharmony_ci     * The number of byte per row.
722661847f8eSopenharmony_ci     *
722761847f8eSopenharmony_ci     * @type { number }
722861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
722961847f8eSopenharmony_ci     * @since 13
723061847f8eSopenharmony_ci     */
723161847f8eSopenharmony_ci    rowStride: number;
723261847f8eSopenharmony_ci
723361847f8eSopenharmony_ci    /**
723461847f8eSopenharmony_ci     * Indicates image format.
723561847f8eSopenharmony_ci     *
723661847f8eSopenharmony_ci     * @type { PixelMapFormat }
723761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
723861847f8eSopenharmony_ci     * @since 13
723961847f8eSopenharmony_ci     */
724061847f8eSopenharmony_ci     pixelFormat: PixelMapFormat;
724161847f8eSopenharmony_ci
724261847f8eSopenharmony_ci    /**
724361847f8eSopenharmony_ci     * Indicates color space for pixel map.
724461847f8eSopenharmony_ci     *
724561847f8eSopenharmony_ci     * @type { colorSpaceManager.ColorSpaceManager }
724661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
724761847f8eSopenharmony_ci     * @since 13
724861847f8eSopenharmony_ci     */
724961847f8eSopenharmony_ci     colorSpace: colorSpaceManager.ColorSpaceManager;
725061847f8eSopenharmony_ci  }
725161847f8eSopenharmony_ci
725261847f8eSopenharmony_ci  /**
725361847f8eSopenharmony_ci   * ImageSource instance.
725461847f8eSopenharmony_ci   *
725561847f8eSopenharmony_ci   * @typedef ImageSource
725661847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
725761847f8eSopenharmony_ci   * @since 6
725861847f8eSopenharmony_ci   */
725961847f8eSopenharmony_ci  /**
726061847f8eSopenharmony_ci   * ImageSource instance.
726161847f8eSopenharmony_ci   *
726261847f8eSopenharmony_ci   * @typedef ImageSource
726361847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
726461847f8eSopenharmony_ci   * @crossplatform
726561847f8eSopenharmony_ci   * @since 10
726661847f8eSopenharmony_ci   */
726761847f8eSopenharmony_ci  /**
726861847f8eSopenharmony_ci   * ImageSource instance.
726961847f8eSopenharmony_ci   *
727061847f8eSopenharmony_ci   * @typedef ImageSource
727161847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
727261847f8eSopenharmony_ci   * @crossplatform
727361847f8eSopenharmony_ci   * @atomicservice
727461847f8eSopenharmony_ci   * @since 11
727561847f8eSopenharmony_ci   */
727661847f8eSopenharmony_ci  /**
727761847f8eSopenharmony_ci   * ImageSource instance.
727861847f8eSopenharmony_ci   *
727961847f8eSopenharmony_ci   * @typedef ImageSource
728061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageSource
728161847f8eSopenharmony_ci   * @crossplatform
728261847f8eSopenharmony_ci   * @form
728361847f8eSopenharmony_ci   * @atomicservice
728461847f8eSopenharmony_ci   * @since 12
728561847f8eSopenharmony_ci   */
728661847f8eSopenharmony_ci  interface ImageSource {
728761847f8eSopenharmony_ci    /**
728861847f8eSopenharmony_ci     * Obtains information about an image with the specified sequence number and uses a callback
728961847f8eSopenharmony_ci     * to return the result.
729061847f8eSopenharmony_ci     *
729161847f8eSopenharmony_ci     * @param { number } index Sequence number of an image.
729261847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
729361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
729461847f8eSopenharmony_ci     * @since 6
729561847f8eSopenharmony_ci     */
729661847f8eSopenharmony_ci    /**
729761847f8eSopenharmony_ci     * Obtains information about an image with the specified sequence number and uses a callback
729861847f8eSopenharmony_ci     * to return the result.
729961847f8eSopenharmony_ci     *
730061847f8eSopenharmony_ci     * @param { number } index Sequence number of an image.
730161847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
730261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
730361847f8eSopenharmony_ci     * @crossplatform
730461847f8eSopenharmony_ci     * @since 10
730561847f8eSopenharmony_ci     */
730661847f8eSopenharmony_ci    /**
730761847f8eSopenharmony_ci     * Obtains information about an image with the specified sequence number and uses a callback
730861847f8eSopenharmony_ci     * to return the result.
730961847f8eSopenharmony_ci     *
731061847f8eSopenharmony_ci     * @param { number } index Sequence number of an image.
731161847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
731261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
731361847f8eSopenharmony_ci     * @crossplatform
731461847f8eSopenharmony_ci     * @atomicservice
731561847f8eSopenharmony_ci     * @since 11
731661847f8eSopenharmony_ci     */
731761847f8eSopenharmony_ci    /**
731861847f8eSopenharmony_ci     * Obtains information about an image with the specified sequence number and uses a callback
731961847f8eSopenharmony_ci     * to return the result.
732061847f8eSopenharmony_ci     *
732161847f8eSopenharmony_ci     * @param { number } index Sequence number of an image.
732261847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
732361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
732461847f8eSopenharmony_ci     * @crossplatform
732561847f8eSopenharmony_ci     * @form
732661847f8eSopenharmony_ci     * @atomicservice
732761847f8eSopenharmony_ci     * @since 12
732861847f8eSopenharmony_ci     */
732961847f8eSopenharmony_ci    getImageInfo(index: number, callback: AsyncCallback<ImageInfo>): void;
733061847f8eSopenharmony_ci
733161847f8eSopenharmony_ci    /**
733261847f8eSopenharmony_ci     * Obtains information about this image and uses a callback to return the result.
733361847f8eSopenharmony_ci     *
733461847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
733561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
733661847f8eSopenharmony_ci     * @since 6
733761847f8eSopenharmony_ci     */
733861847f8eSopenharmony_ci    /**
733961847f8eSopenharmony_ci     * Obtains information about this image and uses a callback to return the result.
734061847f8eSopenharmony_ci     *
734161847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
734261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
734361847f8eSopenharmony_ci     * @crossplatform
734461847f8eSopenharmony_ci     * @since 10
734561847f8eSopenharmony_ci     */
734661847f8eSopenharmony_ci    /**
734761847f8eSopenharmony_ci     * Obtains information about this image and uses a callback to return the result.
734861847f8eSopenharmony_ci     *
734961847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
735061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
735161847f8eSopenharmony_ci     * @crossplatform
735261847f8eSopenharmony_ci     * @atomicservice
735361847f8eSopenharmony_ci     * @since 11
735461847f8eSopenharmony_ci     */
735561847f8eSopenharmony_ci    /**
735661847f8eSopenharmony_ci     * Obtains information about this image and uses a callback to return the result.
735761847f8eSopenharmony_ci     *
735861847f8eSopenharmony_ci     * @param { AsyncCallback<ImageInfo> } callback Callback used to return the image information.
735961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
736061847f8eSopenharmony_ci     * @crossplatform
736161847f8eSopenharmony_ci     * @form
736261847f8eSopenharmony_ci     * @atomicservice
736361847f8eSopenharmony_ci     * @since 12
736461847f8eSopenharmony_ci     */
736561847f8eSopenharmony_ci    getImageInfo(callback: AsyncCallback<ImageInfo>): void;
736661847f8eSopenharmony_ci
736761847f8eSopenharmony_ci    /**
736861847f8eSopenharmony_ci     * Get image information from image source.
736961847f8eSopenharmony_ci     *
737061847f8eSopenharmony_ci     * @param { number } index Sequence number of an image. If this parameter is not specified, the default value 0 is used.
737161847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.
737261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
737361847f8eSopenharmony_ci     * @since 6
737461847f8eSopenharmony_ci     */
737561847f8eSopenharmony_ci    /**
737661847f8eSopenharmony_ci     * Get image information from image source.
737761847f8eSopenharmony_ci     *
737861847f8eSopenharmony_ci     * @param { number } index Sequence number of an image. If this parameter is not specified, the default value 0 is used.
737961847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.
738061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
738161847f8eSopenharmony_ci     * @crossplatform
738261847f8eSopenharmony_ci     * @since 10
738361847f8eSopenharmony_ci     */
738461847f8eSopenharmony_ci    /**
738561847f8eSopenharmony_ci     * Get image information from image source.
738661847f8eSopenharmony_ci     *
738761847f8eSopenharmony_ci     * @param { number } index Sequence number of an image. If this parameter is not specified, the default value 0 is used.
738861847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.
738961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
739061847f8eSopenharmony_ci     * @crossplatform
739161847f8eSopenharmony_ci     * @atomicservice
739261847f8eSopenharmony_ci     * @since 11
739361847f8eSopenharmony_ci     */
739461847f8eSopenharmony_ci    /**
739561847f8eSopenharmony_ci     * Get image information from image source.
739661847f8eSopenharmony_ci     *
739761847f8eSopenharmony_ci     * @param { number } index Sequence number of an image. If this parameter is not specified, the default value 0 is used.
739861847f8eSopenharmony_ci     * @returns { Promise<ImageInfo> } A Promise instance used to return the image information.
739961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
740061847f8eSopenharmony_ci     * @crossplatform
740161847f8eSopenharmony_ci     * @form
740261847f8eSopenharmony_ci     * @atomicservice
740361847f8eSopenharmony_ci     * @since 12
740461847f8eSopenharmony_ci     */
740561847f8eSopenharmony_ci    getImageInfo(index?: number): Promise<ImageInfo>;
740661847f8eSopenharmony_ci
740761847f8eSopenharmony_ci    /**
740861847f8eSopenharmony_ci     * Get image information from image source synchronously.
740961847f8eSopenharmony_ci     *
741061847f8eSopenharmony_ci     * @param { number } index - Index of sequence images. If this parameter is not specified, default value is 0.
741161847f8eSopenharmony_ci     * @returns { ImageInfo } The image information.
741261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
741361847f8eSopenharmony_ci     * @crossplatform
741461847f8eSopenharmony_ci     * @since 12
741561847f8eSopenharmony_ci     */
741661847f8eSopenharmony_ci    getImageInfoSync(index?: number): ImageInfo;
741761847f8eSopenharmony_ci
741861847f8eSopenharmony_ci    /**
741961847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a promise to
742061847f8eSopenharmony_ci     * return the object.
742161847f8eSopenharmony_ci     *
742261847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
742361847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
742461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
742561847f8eSopenharmony_ci     * @since 7
742661847f8eSopenharmony_ci     */
742761847f8eSopenharmony_ci    /**
742861847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a promise to
742961847f8eSopenharmony_ci     * return the object.
743061847f8eSopenharmony_ci     *
743161847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
743261847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
743361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
743461847f8eSopenharmony_ci     * @crossplatform
743561847f8eSopenharmony_ci     * @since 10
743661847f8eSopenharmony_ci     */
743761847f8eSopenharmony_ci    /**
743861847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a promise to
743961847f8eSopenharmony_ci     * return the object.
744061847f8eSopenharmony_ci     *
744161847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
744261847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
744361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
744461847f8eSopenharmony_ci     * @crossplatform
744561847f8eSopenharmony_ci     * @atomicservice
744661847f8eSopenharmony_ci     * @since 11
744761847f8eSopenharmony_ci     */
744861847f8eSopenharmony_ci    /**
744961847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a promise to
745061847f8eSopenharmony_ci     * return the object.
745161847f8eSopenharmony_ci     *
745261847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
745361847f8eSopenharmony_ci     * @returns { Promise<PixelMap> } A Promise instance used to return the PixelMap object.
745461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
745561847f8eSopenharmony_ci     * @crossplatform
745661847f8eSopenharmony_ci     * @form
745761847f8eSopenharmony_ci     * @atomicservice
745861847f8eSopenharmony_ci     * @since 12
745961847f8eSopenharmony_ci     */
746061847f8eSopenharmony_ci    createPixelMap(options?: DecodingOptions): Promise<PixelMap>;
746161847f8eSopenharmony_ci
746261847f8eSopenharmony_ci    /**
746361847f8eSopenharmony_ci     * Creates a PixelMap object. This method uses a callback to return the object.
746461847f8eSopenharmony_ci     *
746561847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
746661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
746761847f8eSopenharmony_ci     * @since 7
746861847f8eSopenharmony_ci     */
746961847f8eSopenharmony_ci    /**
747061847f8eSopenharmony_ci     * Creates a PixelMap object. This method uses a callback to return the object.
747161847f8eSopenharmony_ci     *
747261847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
747361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
747461847f8eSopenharmony_ci     * @crossplatform
747561847f8eSopenharmony_ci     * @since 10
747661847f8eSopenharmony_ci     */
747761847f8eSopenharmony_ci    /**
747861847f8eSopenharmony_ci     * Creates a PixelMap object. This method uses a callback to return the object.
747961847f8eSopenharmony_ci     *
748061847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
748161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
748261847f8eSopenharmony_ci     * @crossplatform
748361847f8eSopenharmony_ci     * @atomicservice
748461847f8eSopenharmony_ci     * @since 11
748561847f8eSopenharmony_ci     */
748661847f8eSopenharmony_ci    /**
748761847f8eSopenharmony_ci     * Creates a PixelMap object. This method uses a callback to return the object.
748861847f8eSopenharmony_ci     *
748961847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
749061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
749161847f8eSopenharmony_ci     * @crossplatform
749261847f8eSopenharmony_ci     * @form
749361847f8eSopenharmony_ci     * @atomicservice
749461847f8eSopenharmony_ci     * @since 12
749561847f8eSopenharmony_ci     */
749661847f8eSopenharmony_ci    createPixelMap(callback: AsyncCallback<PixelMap>): void;
749761847f8eSopenharmony_ci
749861847f8eSopenharmony_ci    /**
749961847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a callback to
750061847f8eSopenharmony_ci     * return the object.
750161847f8eSopenharmony_ci     *
750261847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
750361847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
750461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
750561847f8eSopenharmony_ci     * @since 7
750661847f8eSopenharmony_ci     */
750761847f8eSopenharmony_ci    /**
750861847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a callback to
750961847f8eSopenharmony_ci     * return the object.
751061847f8eSopenharmony_ci     *
751161847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
751261847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
751361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
751461847f8eSopenharmony_ci     * @crossplatform
751561847f8eSopenharmony_ci     * @since 10
751661847f8eSopenharmony_ci     */
751761847f8eSopenharmony_ci    /**
751861847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a callback to
751961847f8eSopenharmony_ci     * return the object.
752061847f8eSopenharmony_ci     *
752161847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
752261847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
752361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
752461847f8eSopenharmony_ci     * @crossplatform
752561847f8eSopenharmony_ci     * @atomicservice
752661847f8eSopenharmony_ci     * @since 11
752761847f8eSopenharmony_ci     */
752861847f8eSopenharmony_ci    /**
752961847f8eSopenharmony_ci     * Creates a PixelMap object based on image decoding parameters. This method uses a callback to
753061847f8eSopenharmony_ci     * return the object.
753161847f8eSopenharmony_ci     *
753261847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
753361847f8eSopenharmony_ci     * @param { AsyncCallback<PixelMap> } callback Callback used to return the PixelMap object.
753461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
753561847f8eSopenharmony_ci     * @crossplatform
753661847f8eSopenharmony_ci     * @form
753761847f8eSopenharmony_ci     * @atomicservice
753861847f8eSopenharmony_ci     * @since 12
753961847f8eSopenharmony_ci     */
754061847f8eSopenharmony_ci    createPixelMap(options: DecodingOptions, callback: AsyncCallback<PixelMap>): void;
754161847f8eSopenharmony_ci
754261847f8eSopenharmony_ci    /**
754361847f8eSopenharmony_ci     * Create a PixelMap object based on image decoding parameters synchronously.
754461847f8eSopenharmony_ci     *
754561847f8eSopenharmony_ci     * @param { DecodingOptions } options - Image decoding parameters.
754661847f8eSopenharmony_ci     * @returns { PixelMap } Return the PixelMap. If decoding fails, return undefined.
754761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
754861847f8eSopenharmony_ci     * @crossplatform
754961847f8eSopenharmony_ci     * @since 12
755061847f8eSopenharmony_ci     */
755161847f8eSopenharmony_ci    createPixelMapSync(options?: DecodingOptions): PixelMap;
755261847f8eSopenharmony_ci
755361847f8eSopenharmony_ci    /**
755461847f8eSopenharmony_ci     * Creates a PixelMap array based on image decoding parameters. This method uses a promise to
755561847f8eSopenharmony_ci     * return the array.
755661847f8eSopenharmony_ci     *
755761847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
755861847f8eSopenharmony_ci     * @returns { Promise<Array<PixelMap>> } A Promise instance used to return the PixelMap array.
755961847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
756061847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
756161847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
756261847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
756361847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
756461847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
756561847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
756661847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
756761847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
756861847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
756961847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
757061847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
757161847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
757261847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
757361847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
757461847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
757561847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
757661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
757761847f8eSopenharmony_ci     * @crossplatform
757861847f8eSopenharmony_ci     * @since 10
757961847f8eSopenharmony_ci     */
758061847f8eSopenharmony_ci     /**
758161847f8eSopenharmony_ci     * Creates a PixelMap array based on image decoding parameters. This method uses a promise to
758261847f8eSopenharmony_ci     * return the array.
758361847f8eSopenharmony_ci     *
758461847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
758561847f8eSopenharmony_ci     * @returns { Promise<Array<PixelMap>> } A Promise instance used to return the PixelMap array.
758661847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
758761847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
758861847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
758961847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
759061847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
759161847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
759261847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
759361847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
759461847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
759561847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
759661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
759761847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
759861847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
759961847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
760061847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
760161847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
760261847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
760361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
760461847f8eSopenharmony_ci     * @crossplatform
760561847f8eSopenharmony_ci     * @since 12
760661847f8eSopenharmony_ci     */
760761847f8eSopenharmony_ci    createPixelMapList(options?: DecodingOptions): Promise<Array<PixelMap>>;
760861847f8eSopenharmony_ci
760961847f8eSopenharmony_ci    /**
761061847f8eSopenharmony_ci     * Creates a PixelMap array. This method uses a callback to return the array.
761161847f8eSopenharmony_ci     *
761261847f8eSopenharmony_ci     * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.
761361847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
761461847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
761561847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
761661847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
761761847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
761861847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
761961847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
762061847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
762161847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
762261847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
762361847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
762461847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
762561847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
762661847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
762761847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
762861847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
762961847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
763061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
763161847f8eSopenharmony_ci     * @crossplatform
763261847f8eSopenharmony_ci     * @since 10
763361847f8eSopenharmony_ci     */
763461847f8eSopenharmony_ci    /**
763561847f8eSopenharmony_ci     * Creates a PixelMap array. This method uses a callback to return the array.
763661847f8eSopenharmony_ci     *
763761847f8eSopenharmony_ci     * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.
763861847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
763961847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
764061847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
764161847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
764261847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
764361847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
764461847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
764561847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
764661847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
764761847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
764861847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
764961847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
765061847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
765161847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
765261847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
765361847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
765461847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
765561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
765661847f8eSopenharmony_ci     * @crossplatform
765761847f8eSopenharmony_ci     * @since 12
765861847f8eSopenharmony_ci     */
765961847f8eSopenharmony_ci    createPixelMapList(callback: AsyncCallback<Array<PixelMap>>): void;
766061847f8eSopenharmony_ci
766161847f8eSopenharmony_ci    /**
766261847f8eSopenharmony_ci     * Creates a PixelMap array based on image decoding parameters. This method uses a callback to
766361847f8eSopenharmony_ci     * return the array.
766461847f8eSopenharmony_ci     *
766561847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
766661847f8eSopenharmony_ci     * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.
766761847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
766861847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
766961847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
767061847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
767161847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
767261847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
767361847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
767461847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
767561847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
767661847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
767761847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
767861847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
767961847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
768061847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
768161847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
768261847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
768361847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
768461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
768561847f8eSopenharmony_ci     * @crossplatform
768661847f8eSopenharmony_ci     * @since 10
768761847f8eSopenharmony_ci     */
768861847f8eSopenharmony_ci    /**
768961847f8eSopenharmony_ci     * Creates a PixelMap array based on image decoding parameters. This method uses a callback to
769061847f8eSopenharmony_ci     * return the array.
769161847f8eSopenharmony_ci     *
769261847f8eSopenharmony_ci     * @param { DecodingOptions } options Image decoding parameters.
769361847f8eSopenharmony_ci     * @param { AsyncCallback<Array<PixelMap>> } callback Callback used to return the PixelMap array.
769461847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
769561847f8eSopenharmony_ci     * @throws { BusinessError } 62980099 - The shared memory data is abnormal.
769661847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
769761847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
769861847f8eSopenharmony_ci     * @throws { BusinessError } 62980106 - The image is too large.
769961847f8eSopenharmony_ci     * @throws { BusinessError } 62980109 - Failed to crop the image.
770061847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
770161847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
770261847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
770361847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
770461847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
770561847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
770661847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
770761847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
770861847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
770961847f8eSopenharmony_ci     * @throws { BusinessError } 62980173 - The DMA memory does not exist.
771061847f8eSopenharmony_ci     * @throws { BusinessError } 62980174 - The DMA memory data is abnormal.
771161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
771261847f8eSopenharmony_ci     * @crossplatform
771361847f8eSopenharmony_ci     * @since 12
771461847f8eSopenharmony_ci     */
771561847f8eSopenharmony_ci    createPixelMapList(options: DecodingOptions, callback: AsyncCallback<Array<PixelMap>>): void;
771661847f8eSopenharmony_ci
771761847f8eSopenharmony_ci    /**
771861847f8eSopenharmony_ci     * Obtains the array of delay time in an image. This method uses a promise to return the array.
771961847f8eSopenharmony_ci     *
772061847f8eSopenharmony_ci     * @returns { Promise<Array<number>> } A Promise instance used to return the array.
772161847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
772261847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
772361847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
772461847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
772561847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
772661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
772761847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
772861847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
772961847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
773061847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
773161847f8eSopenharmony_ci     * @throws { BusinessError } 62980149 - Invalid media parameter.
773261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
773361847f8eSopenharmony_ci     * @crossplatform
773461847f8eSopenharmony_ci     * @since 10
773561847f8eSopenharmony_ci     */
773661847f8eSopenharmony_ci    /**
773761847f8eSopenharmony_ci     * Obtains the array of delay time in an image. This method uses a promise to return the array.
773861847f8eSopenharmony_ci     *
773961847f8eSopenharmony_ci     * @returns { Promise<Array<number>> } A Promise instance used to return the array.
774061847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
774161847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
774261847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
774361847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
774461847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
774561847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
774661847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
774761847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
774861847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
774961847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
775061847f8eSopenharmony_ci     * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.
775161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
775261847f8eSopenharmony_ci     * @crossplatform
775361847f8eSopenharmony_ci     * @since 12
775461847f8eSopenharmony_ci     */
775561847f8eSopenharmony_ci    getDelayTimeList(): Promise<Array<number>>;
775661847f8eSopenharmony_ci
775761847f8eSopenharmony_ci    /**
775861847f8eSopenharmony_ci     * Obtains the array of delay time in an image. This method uses a callback to return the array.
775961847f8eSopenharmony_ci     *
776061847f8eSopenharmony_ci     * @param { AsyncCallback<Array<number>> } callback Callback used to return the array.
776161847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
776261847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
776361847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
776461847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
776561847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
776661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
776761847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
776861847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
776961847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
777061847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
777161847f8eSopenharmony_ci     * @throws { BusinessError } 62980149 - Invalid media parameter.
777261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
777361847f8eSopenharmony_ci     * @crossplatform
777461847f8eSopenharmony_ci     * @since 10
777561847f8eSopenharmony_ci     */
777661847f8eSopenharmony_ci    /**
777761847f8eSopenharmony_ci     * Obtains the array of delay time in an image. This method uses a callback to return the array.
777861847f8eSopenharmony_ci     *
777961847f8eSopenharmony_ci     * @param { AsyncCallback<Array<number>> } callback Callback used to return the array.
778061847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
778161847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
778261847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
778361847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
778461847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
778561847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
778661847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
778761847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
778861847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
778961847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
779061847f8eSopenharmony_ci     * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.
779161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
779261847f8eSopenharmony_ci     * @crossplatform
779361847f8eSopenharmony_ci     * @since 12
779461847f8eSopenharmony_ci     */
779561847f8eSopenharmony_ci    getDelayTimeList(callback: AsyncCallback<Array<number>>): void;
779661847f8eSopenharmony_ci
779761847f8eSopenharmony_ci    /**
779861847f8eSopenharmony_ci     * Obtains the array of disposal type in a gif image. This method uses a promise to return the array.
779961847f8eSopenharmony_ci     *
780061847f8eSopenharmony_ci     * @returns { Promise<Array<number>> } A Promise instance used to return the array.
780161847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
780261847f8eSopenharmony_ci     * @throws { BusinessError } 62980101 - The image data is abnormal.
780361847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
780461847f8eSopenharmony_ci     * @throws { BusinessError } 62980149 - Invalid MIME type for the image source.
780561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
780661847f8eSopenharmony_ci     * @crossplatform
780761847f8eSopenharmony_ci     * @since 12
780861847f8eSopenharmony_ci     */
780961847f8eSopenharmony_ci    getDisposalTypeList(): Promise<Array<number>>;
781061847f8eSopenharmony_ci
781161847f8eSopenharmony_ci    /**
781261847f8eSopenharmony_ci     * Obtains the count of frame in an image. This method uses a promise to return the number.
781361847f8eSopenharmony_ci     *
781461847f8eSopenharmony_ci     * @returns { Promise<number> } A Promise instance used to return the number.
781561847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
781661847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
781761847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
781861847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
781961847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
782061847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
782161847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
782261847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
782361847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
782461847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
782561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
782661847f8eSopenharmony_ci     * @crossplatform
782761847f8eSopenharmony_ci     * @since 10
782861847f8eSopenharmony_ci     */
782961847f8eSopenharmony_ci    /**
783061847f8eSopenharmony_ci     * Obtains the count of frame in an image. This method uses a promise to return the number.
783161847f8eSopenharmony_ci     *
783261847f8eSopenharmony_ci     * @returns { Promise<number> } A Promise instance used to return the number.
783361847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
783461847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
783561847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
783661847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
783761847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
783861847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
783961847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
784061847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
784161847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
784261847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
784361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
784461847f8eSopenharmony_ci     * @crossplatform
784561847f8eSopenharmony_ci     * @since 12
784661847f8eSopenharmony_ci     */
784761847f8eSopenharmony_ci    getFrameCount(): Promise<number>;
784861847f8eSopenharmony_ci
784961847f8eSopenharmony_ci    /**
785061847f8eSopenharmony_ci     * Obtains the count of frame in an image. This method uses a callback to return the number.
785161847f8eSopenharmony_ci     *
785261847f8eSopenharmony_ci     * @param { AsyncCallback<number> } callback Callback used to return the number.
785361847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
785461847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
785561847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
785661847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
785761847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
785861847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
785961847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
786061847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
786161847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
786261847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
786361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
786461847f8eSopenharmony_ci     * @crossplatform
786561847f8eSopenharmony_ci     * @since 10
786661847f8eSopenharmony_ci     */
786761847f8eSopenharmony_ci    /**
786861847f8eSopenharmony_ci     * Obtains the count of frame in an image. This method uses a callback to return the number.
786961847f8eSopenharmony_ci     *
787061847f8eSopenharmony_ci     * @param { AsyncCallback<number> } callback Callback used to return the number.
787161847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
787261847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
787361847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
787461847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
787561847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
787661847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
787761847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
787861847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
787961847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
788061847f8eSopenharmony_ci     * @throws { BusinessError } 62980137 - Invalid media operation.
788161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
788261847f8eSopenharmony_ci     * @crossplatform
788361847f8eSopenharmony_ci     * @since 12
788461847f8eSopenharmony_ci     */
788561847f8eSopenharmony_ci    getFrameCount(callback: AsyncCallback<number>): void;
788661847f8eSopenharmony_ci
788761847f8eSopenharmony_ci    /**
788861847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses a
788961847f8eSopenharmony_ci     * promise to return the property value in a string.
789061847f8eSopenharmony_ci     *
789161847f8eSopenharmony_ci     * @param { PropertyKey } key - Name of the property whose value is to be obtained.
789261847f8eSopenharmony_ci     * @param { ImagePropertyOptions } options - Index of the image.
789361847f8eSopenharmony_ci     * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.
789461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;3.Parameter verification failed;
789561847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
789661847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
789761847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
789861847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
789961847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
790061847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
790161847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
790261847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
790361847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
790461847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - The image decoding header is abnormal.
790561847f8eSopenharmony_ci     * @throws { BusinessError } 62980123 - Images in EXIF format are not supported.
790661847f8eSopenharmony_ci     * @throws { BusinessError } 62980135 - The EXIF value is invalid.
790761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
790861847f8eSopenharmony_ci     * @crossplatform
790961847f8eSopenharmony_ci     * @since 11
791061847f8eSopenharmony_ci     */
791161847f8eSopenharmony_ci    /**
791261847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses a
791361847f8eSopenharmony_ci     * promise to return the property value in a string.
791461847f8eSopenharmony_ci     *
791561847f8eSopenharmony_ci     * @param { PropertyKey } key - Name of the property whose value is to be obtained.
791661847f8eSopenharmony_ci     * @param { ImagePropertyOptions } options - Index of the image.
791761847f8eSopenharmony_ci     * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.
791861847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;3.Parameter verification failed;
791961847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
792061847f8eSopenharmony_ci     * @throws { BusinessError } 62980103 - The image data is not supported.
792161847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
792261847f8eSopenharmony_ci     * @throws { BusinessError } 62980111 - The image source data is incomplete.
792361847f8eSopenharmony_ci     * @throws { BusinessError } 62980112 - The image format does not match.
792461847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
792561847f8eSopenharmony_ci     * @throws { BusinessError } 62980115 - Invalid image parameter.
792661847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
792761847f8eSopenharmony_ci     * @throws { BusinessError } 62980118 - Failed to create the image plugin.
792861847f8eSopenharmony_ci     * @throws { BusinessError } 62980122 - Failed to decode the image header.
792961847f8eSopenharmony_ci     * @throws { BusinessError } 62980123 - Images in EXIF format are not supported.
793061847f8eSopenharmony_ci     * @throws { BusinessError } 62980135 - The EXIF value is invalid.
793161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
793261847f8eSopenharmony_ci     * @crossplatform
793361847f8eSopenharmony_ci     * @since 12
793461847f8eSopenharmony_ci     */
793561847f8eSopenharmony_ci    getImageProperty(key: PropertyKey, options?: ImagePropertyOptions): Promise<string>;
793661847f8eSopenharmony_ci
793761847f8eSopenharmony_ci    /**
793861847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses a
793961847f8eSopenharmony_ci     * promise to return the property value in a string.
794061847f8eSopenharmony_ci     *
794161847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
794261847f8eSopenharmony_ci     * @param { GetImagePropertyOptions } options Index of the image.
794361847f8eSopenharmony_ci     * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.
794461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
794561847f8eSopenharmony_ci     * @since 7
794661847f8eSopenharmony_ci     * @deprecated since 11
794761847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
794861847f8eSopenharmony_ci     */
794961847f8eSopenharmony_ci    /**
795061847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses a
795161847f8eSopenharmony_ci     * promise to return the property value in a string.
795261847f8eSopenharmony_ci     *
795361847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
795461847f8eSopenharmony_ci     * @param { GetImagePropertyOptions } options Index of the image.
795561847f8eSopenharmony_ci     * @returns { Promise<string> } A Promise instance used to return the property value. If the operation fails, the default value is returned.
795661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
795761847f8eSopenharmony_ci     * @crossplatform
795861847f8eSopenharmony_ci     * @since 10
795961847f8eSopenharmony_ci     * @deprecated since 11
796061847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
796161847f8eSopenharmony_ci     */
796261847f8eSopenharmony_ci    getImageProperty(key: string, options?: GetImagePropertyOptions): Promise<string>;
796361847f8eSopenharmony_ci
796461847f8eSopenharmony_ci    /**
796561847f8eSopenharmony_ci     * Obtains the value of a property in this image. This method uses a callback to return the
796661847f8eSopenharmony_ci     * property value in a string.
796761847f8eSopenharmony_ci     *
796861847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
796961847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, an error message is returned.
797061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
797161847f8eSopenharmony_ci     * @since 7
797261847f8eSopenharmony_ci     * @deprecated since 11
797361847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
797461847f8eSopenharmony_ci     */
797561847f8eSopenharmony_ci    /**
797661847f8eSopenharmony_ci     * Obtains the value of a property in this image. This method uses a callback to return the
797761847f8eSopenharmony_ci     * property value in a string.
797861847f8eSopenharmony_ci     *
797961847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
798061847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, an error message is returned.
798161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
798261847f8eSopenharmony_ci     * @crossplatform
798361847f8eSopenharmony_ci     * @since 10
798461847f8eSopenharmony_ci     * @deprecated since 11
798561847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
798661847f8eSopenharmony_ci     */
798761847f8eSopenharmony_ci    getImageProperty(key: string, callback: AsyncCallback<string>): void;
798861847f8eSopenharmony_ci
798961847f8eSopenharmony_ci    /**
799061847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses
799161847f8eSopenharmony_ci     * a callback to return the property value in a string.
799261847f8eSopenharmony_ci     *
799361847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
799461847f8eSopenharmony_ci     * @param { GetImagePropertyOptions } options Index of the image.
799561847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, the default value is returned.
799661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
799761847f8eSopenharmony_ci     * @since 7
799861847f8eSopenharmony_ci     * @deprecated since 11
799961847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
800061847f8eSopenharmony_ci     */
800161847f8eSopenharmony_ci    /**
800261847f8eSopenharmony_ci     * Obtains the value of a property in an image with the specified index. This method uses
800361847f8eSopenharmony_ci     * a callback to return the property value in a string.
800461847f8eSopenharmony_ci     *
800561847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
800661847f8eSopenharmony_ci     * @param { GetImagePropertyOptions } options Index of the image.
800761847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback Callback used to return the property value. If the operation fails, the default value is returned.
800861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
800961847f8eSopenharmony_ci     * @crossplatform
801061847f8eSopenharmony_ci     * @since 10
801161847f8eSopenharmony_ci     * @deprecated since 11
801261847f8eSopenharmony_ci     * @useinstead image.ImageSource#getImageProperty
801361847f8eSopenharmony_ci     */
801461847f8eSopenharmony_ci    getImageProperty(key: string, options: GetImagePropertyOptions, callback: AsyncCallback<string>): void;
801561847f8eSopenharmony_ci
801661847f8eSopenharmony_ci    /**
801761847f8eSopenharmony_ci     * Obtains the value of properties in an image. This method uses a promise to return the property values in array
801861847f8eSopenharmony_ci     * of records.
801961847f8eSopenharmony_ci     *
802061847f8eSopenharmony_ci     * @param { Array<PropertyKey> } key - Name of the properties whose value is to be obtained.
802161847f8eSopenharmony_ci     * @returns { Promise<Record<PropertyKey, string|null>> } Array of Records instance used to return the
802261847f8eSopenharmony_ci     * property values. If the operation fails, the null is returned.
802361847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;
802461847f8eSopenharmony_ci     * @throws { BusinessError } 62980096 - The operation failed.
802561847f8eSopenharmony_ci     * @throws { BusinessError } 62980110 - The image source data is incorrect.
802661847f8eSopenharmony_ci     * @throws { BusinessError } 62980113 - Unknown image format.
802761847f8eSopenharmony_ci     * @throws { BusinessError } 62980116 - Failed to decode the image.
802861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
802961847f8eSopenharmony_ci     * @crossplatform
803061847f8eSopenharmony_ci     * @since 12
803161847f8eSopenharmony_ci     */
803261847f8eSopenharmony_ci    getImageProperties(key: Array<PropertyKey>): Promise<Record<PropertyKey, string|null>>;
803361847f8eSopenharmony_ci
803461847f8eSopenharmony_ci    /**
803561847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a
803661847f8eSopenharmony_ci     * promise to return the property value in a string.
803761847f8eSopenharmony_ci     *
803861847f8eSopenharmony_ci     * @param { PropertyKey } key - Name of the property whose value is to be modified.
803961847f8eSopenharmony_ci     * @param { string } value - The value to be set to property.
804061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
804161847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
804261847f8eSopenharmony_ci     * @throws { BusinessError } 62980123 - Images in EXIF format are not supported.
804361847f8eSopenharmony_ci     * @throws { BusinessError } 62980133 - The EXIF data is out of range.
804461847f8eSopenharmony_ci     * @throws { BusinessError } 62980135 - The EXIF value is invalid.
804561847f8eSopenharmony_ci     * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.
804661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
804761847f8eSopenharmony_ci     * @crossplatform
804861847f8eSopenharmony_ci     * @since 11
804961847f8eSopenharmony_ci     */
805061847f8eSopenharmony_ci    /**
805161847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a
805261847f8eSopenharmony_ci     * promise to return the property value in a string.
805361847f8eSopenharmony_ci     *
805461847f8eSopenharmony_ci     * @param { PropertyKey } key - Name of the property whose value is to be modified.
805561847f8eSopenharmony_ci     * @param { string } value - The value to be set to property.
805661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
805761847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types;
805861847f8eSopenharmony_ci     * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.
805961847f8eSopenharmony_ci     * @throws { BusinessError } 62980133 - The EXIF data is out of range.
806061847f8eSopenharmony_ci     * @throws { BusinessError } 62980135 - The EXIF value is invalid.
806161847f8eSopenharmony_ci     * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.
806261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
806361847f8eSopenharmony_ci     * @crossplatform
806461847f8eSopenharmony_ci     * @since 12
806561847f8eSopenharmony_ci     */
806661847f8eSopenharmony_ci    modifyImageProperty(key: PropertyKey, value: string): Promise<void>;
806761847f8eSopenharmony_ci
806861847f8eSopenharmony_ci    /**
806961847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a
807061847f8eSopenharmony_ci     * promise to return the property value in a string.
807161847f8eSopenharmony_ci     *
807261847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be modified.
807361847f8eSopenharmony_ci     * @param { string } value The value to be set to property.
807461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
807561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
807661847f8eSopenharmony_ci     * @since 9
807761847f8eSopenharmony_ci     * @deprecated since 11
807861847f8eSopenharmony_ci     * @useinstead image.ImageSource#modifyImageProperty
807961847f8eSopenharmony_ci     */
808061847f8eSopenharmony_ci    /**
808161847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a
808261847f8eSopenharmony_ci     * promise to return the property value in a string.
808361847f8eSopenharmony_ci     *
808461847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be modified.
808561847f8eSopenharmony_ci     * @param { string } value The value to be set to property.
808661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
808761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
808861847f8eSopenharmony_ci     * @crossplatform
808961847f8eSopenharmony_ci     * @since 10
809061847f8eSopenharmony_ci     * @deprecated since 11
809161847f8eSopenharmony_ci     * @useinstead image.ImageSource#modifyImageProperty
809261847f8eSopenharmony_ci     */
809361847f8eSopenharmony_ci    modifyImageProperty(key: string, value: string): Promise<void>;
809461847f8eSopenharmony_ci
809561847f8eSopenharmony_ci    /**
809661847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a callback to return the
809761847f8eSopenharmony_ci     * property value in a string.
809861847f8eSopenharmony_ci     *
809961847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
810061847f8eSopenharmony_ci     * @param { string } value The value to be set to property.
810161847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
810261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
810361847f8eSopenharmony_ci     * @since 9
810461847f8eSopenharmony_ci     * @deprecated since 11
810561847f8eSopenharmony_ci     * @useinstead image.ImageSource#modifyImageProperty
810661847f8eSopenharmony_ci     */
810761847f8eSopenharmony_ci    /**
810861847f8eSopenharmony_ci     * Modify the value of a property in an image with the specified key. This method uses a callback to return the
810961847f8eSopenharmony_ci     * property value in a string.
811061847f8eSopenharmony_ci     *
811161847f8eSopenharmony_ci     * @param { string } key Name of the property whose value is to be obtained.
811261847f8eSopenharmony_ci     * @param { string } value The value to be set to property.
811361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
811461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
811561847f8eSopenharmony_ci     * @crossplatform
811661847f8eSopenharmony_ci     * @since 10
811761847f8eSopenharmony_ci     * @deprecated since 11
811861847f8eSopenharmony_ci     * @useinstead image.ImageSource#modifyImageProperty
811961847f8eSopenharmony_ci     */
812061847f8eSopenharmony_ci    modifyImageProperty(key: string, value: string, callback: AsyncCallback<void>): void;
812161847f8eSopenharmony_ci
812261847f8eSopenharmony_ci    /**
812361847f8eSopenharmony_ci     * Modify the value of properties in an image with the specified keys.
812461847f8eSopenharmony_ci     *
812561847f8eSopenharmony_ci     * @param { Record<PropertyKey, string|null> } records - Array of the property Records whose values are to
812661847f8eSopenharmony_ci     * be modified.
812761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result. If the operation fails, an
812861847f8eSopenharmony_ci     * error message is returned.
812961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed;
813061847f8eSopenharmony_ci     * @throws { BusinessError } 62980123 - The image does not support EXIF decoding.
813161847f8eSopenharmony_ci     * @throws { BusinessError } 62980133 - The EXIF data is out of range.
813261847f8eSopenharmony_ci     * @throws { BusinessError } 62980135 - The EXIF value is invalid.
813361847f8eSopenharmony_ci     * @throws { BusinessError } 62980146 - The EXIF data failed to be written to the file.
813461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
813561847f8eSopenharmony_ci     * @crossplatform
813661847f8eSopenharmony_ci     * @since 12
813761847f8eSopenharmony_ci     */
813861847f8eSopenharmony_ci    modifyImageProperties(records: Record<PropertyKey, string|null>): Promise<void>;
813961847f8eSopenharmony_ci
814061847f8eSopenharmony_ci    /**
814161847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
814261847f8eSopenharmony_ci     *
814361847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
814461847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
814561847f8eSopenharmony_ci     * @param { number } value The offset of data.
814661847f8eSopenharmony_ci     * @param { number } length The length fo buf.
814761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
814861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
814961847f8eSopenharmony_ci     * @since 9
815061847f8eSopenharmony_ci     */
815161847f8eSopenharmony_ci    /**
815261847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
815361847f8eSopenharmony_ci     *
815461847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
815561847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
815661847f8eSopenharmony_ci     * @param { number } value The offset of data.
815761847f8eSopenharmony_ci     * @param { number } length The length fo buf.
815861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
815961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
816061847f8eSopenharmony_ci     * @crossplatform
816161847f8eSopenharmony_ci     * @since 10
816261847f8eSopenharmony_ci     */
816361847f8eSopenharmony_ci    /**
816461847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
816561847f8eSopenharmony_ci     *
816661847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
816761847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
816861847f8eSopenharmony_ci     * @param { number } offset The offset of data.
816961847f8eSopenharmony_ci     * @param { number } length The length fo buf.
817061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the property value.
817161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
817261847f8eSopenharmony_ci     * @crossplatform
817361847f8eSopenharmony_ci     * @since 11
817461847f8eSopenharmony_ci     */
817561847f8eSopenharmony_ci    updateData(buf: ArrayBuffer, isFinished: boolean, offset: number, length: number): Promise<void>;
817661847f8eSopenharmony_ci
817761847f8eSopenharmony_ci    /**
817861847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
817961847f8eSopenharmony_ci     *
818061847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
818161847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
818261847f8eSopenharmony_ci     * @param { number } value The offset of data.
818361847f8eSopenharmony_ci     * @param { number } length The length fo buf.
818461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
818561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
818661847f8eSopenharmony_ci     * @since 9
818761847f8eSopenharmony_ci     */
818861847f8eSopenharmony_ci    /**
818961847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
819061847f8eSopenharmony_ci     *
819161847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
819261847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
819361847f8eSopenharmony_ci     * @param { number } value The offset of data.
819461847f8eSopenharmony_ci     * @param { number } length The length fo buf.
819561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
819661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
819761847f8eSopenharmony_ci     * @crossplatform
819861847f8eSopenharmony_ci     * @since 10
819961847f8eSopenharmony_ci     */
820061847f8eSopenharmony_ci    /**
820161847f8eSopenharmony_ci     * Update the data in the incremental ImageSource.
820261847f8eSopenharmony_ci     *
820361847f8eSopenharmony_ci     * @param { ArrayBuffer } buf The data to be updated.
820461847f8eSopenharmony_ci     * @param { boolean } isFinished If is it finished.
820561847f8eSopenharmony_ci     * @param { number } offset The offset of data.
820661847f8eSopenharmony_ci     * @param { number } length The length fo buf.
820761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
820861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
820961847f8eSopenharmony_ci     * @crossplatform
821061847f8eSopenharmony_ci     * @since 11
821161847f8eSopenharmony_ci     */
821261847f8eSopenharmony_ci    updateData(
821361847f8eSopenharmony_ci      buf: ArrayBuffer,
821461847f8eSopenharmony_ci      isFinished: boolean,
821561847f8eSopenharmony_ci      offset: number,
821661847f8eSopenharmony_ci      length: number,
821761847f8eSopenharmony_ci      callback: AsyncCallback<void>
821861847f8eSopenharmony_ci    ): void;
821961847f8eSopenharmony_ci
822061847f8eSopenharmony_ci    /**
822161847f8eSopenharmony_ci     * Releases an ImageSource instance and uses a callback to return the result.
822261847f8eSopenharmony_ci     *
822361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
822461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
822561847f8eSopenharmony_ci     * @since 6
822661847f8eSopenharmony_ci     */
822761847f8eSopenharmony_ci    /**
822861847f8eSopenharmony_ci     * Releases an ImageSource instance and uses a callback to return the result.
822961847f8eSopenharmony_ci     *
823061847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
823161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
823261847f8eSopenharmony_ci     * @crossplatform
823361847f8eSopenharmony_ci     * @since 10
823461847f8eSopenharmony_ci     */
823561847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
823661847f8eSopenharmony_ci
823761847f8eSopenharmony_ci    /**
823861847f8eSopenharmony_ci     * Releases an ImageSource instance and uses a promise to return the result.
823961847f8eSopenharmony_ci     *
824061847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
824161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
824261847f8eSopenharmony_ci     * @since 6
824361847f8eSopenharmony_ci     */
824461847f8eSopenharmony_ci    /**
824561847f8eSopenharmony_ci     * Releases an ImageSource instance and uses a promise to return the result.
824661847f8eSopenharmony_ci     *
824761847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
824861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
824961847f8eSopenharmony_ci     * @crossplatform
825061847f8eSopenharmony_ci     * @since 10
825161847f8eSopenharmony_ci     */
825261847f8eSopenharmony_ci    release(): Promise<void>;
825361847f8eSopenharmony_ci
825461847f8eSopenharmony_ci    /**
825561847f8eSopenharmony_ci     * Creates a Picture object based on image decoding parameters. This method uses a promise to
825661847f8eSopenharmony_ci     * return the object.
825761847f8eSopenharmony_ci     *
825861847f8eSopenharmony_ci     * @param { DecodingOptionsForPicture } options Image decoding parameters.
825961847f8eSopenharmony_ci     * @returns { Promise<Picture> } A Promise instance used to return the Picture object.
826061847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
826161847f8eSopenharmony_ci     * 2.Incorrect parameter types; 3.Parameter verification failed.
826261847f8eSopenharmony_ci     * @throws { BusinessError } 7700301 - Decode failed.
826361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
826461847f8eSopenharmony_ci     * @since 13
826561847f8eSopenharmony_ci     */
826661847f8eSopenharmony_ci    createPicture(options?: DecodingOptionsForPicture): Promise<Picture>
826761847f8eSopenharmony_ci
826861847f8eSopenharmony_ci    /**
826961847f8eSopenharmony_ci     * Supported image formats.
827061847f8eSopenharmony_ci     *
827161847f8eSopenharmony_ci     * @type { Array<string> }
827261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
827361847f8eSopenharmony_ci     * @since 6
827461847f8eSopenharmony_ci     */
827561847f8eSopenharmony_ci    /**
827661847f8eSopenharmony_ci     * Supported image formats.
827761847f8eSopenharmony_ci     *
827861847f8eSopenharmony_ci     * @type { Array<string> }
827961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageSource
828061847f8eSopenharmony_ci     * @crossplatform
828161847f8eSopenharmony_ci     * @since 10
828261847f8eSopenharmony_ci     */
828361847f8eSopenharmony_ci    readonly supportedFormats: Array<string>;
828461847f8eSopenharmony_ci  }
828561847f8eSopenharmony_ci
828661847f8eSopenharmony_ci  /**
828761847f8eSopenharmony_ci   * ImagePacker instance.
828861847f8eSopenharmony_ci   *
828961847f8eSopenharmony_ci   * @typedef ImagePacker
829061847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
829161847f8eSopenharmony_ci   * @since 6
829261847f8eSopenharmony_ci   */
829361847f8eSopenharmony_ci  /**
829461847f8eSopenharmony_ci   * ImagePacker instance.
829561847f8eSopenharmony_ci   *
829661847f8eSopenharmony_ci   * @typedef ImagePacker
829761847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
829861847f8eSopenharmony_ci   * @crossplatform
829961847f8eSopenharmony_ci   * @since 10
830061847f8eSopenharmony_ci   */
830161847f8eSopenharmony_ci  /**
830261847f8eSopenharmony_ci   * ImagePacker instance.
830361847f8eSopenharmony_ci   *
830461847f8eSopenharmony_ci   * @typedef ImagePacker
830561847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImagePacker
830661847f8eSopenharmony_ci   * @crossplatform
830761847f8eSopenharmony_ci   * @atomicservice
830861847f8eSopenharmony_ci   * @since 11
830961847f8eSopenharmony_ci   */
831061847f8eSopenharmony_ci  interface ImagePacker {
831161847f8eSopenharmony_ci    /**
831261847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
831361847f8eSopenharmony_ci     *
831461847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
831561847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
831661847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
831761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
831861847f8eSopenharmony_ci     * @since 6
831961847f8eSopenharmony_ci     */
832061847f8eSopenharmony_ci    /**
832161847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
832261847f8eSopenharmony_ci     *
832361847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
832461847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
832561847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
832661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
832761847f8eSopenharmony_ci     * @crossplatform
832861847f8eSopenharmony_ci     * @since 10
832961847f8eSopenharmony_ci     */
833061847f8eSopenharmony_ci    /**
833161847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
833261847f8eSopenharmony_ci     *
833361847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
833461847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
833561847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
833661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
833761847f8eSopenharmony_ci     * @crossplatform
833861847f8eSopenharmony_ci     * @atomicservice
833961847f8eSopenharmony_ci     * @since 11
834061847f8eSopenharmony_ci     */
834161847f8eSopenharmony_ci    packing(source: ImageSource, option: PackingOption, callback: AsyncCallback<ArrayBuffer>): void;
834261847f8eSopenharmony_ci
834361847f8eSopenharmony_ci    /**
834461847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
834561847f8eSopenharmony_ci     *
834661847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
834761847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
834861847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
834961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
835061847f8eSopenharmony_ci     * @since 6
835161847f8eSopenharmony_ci     */
835261847f8eSopenharmony_ci    /**
835361847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
835461847f8eSopenharmony_ci     *
835561847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
835661847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
835761847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
835861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
835961847f8eSopenharmony_ci     * @crossplatform
836061847f8eSopenharmony_ci     * @since 10
836161847f8eSopenharmony_ci     */
836261847f8eSopenharmony_ci    /**
836361847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
836461847f8eSopenharmony_ci     *
836561847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
836661847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
836761847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
836861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
836961847f8eSopenharmony_ci     * @crossplatform
837061847f8eSopenharmony_ci     * @atomicservice
837161847f8eSopenharmony_ci     * @since 11
837261847f8eSopenharmony_ci     */
837361847f8eSopenharmony_ci    packing(source: ImageSource, option: PackingOption): Promise<ArrayBuffer>;
837461847f8eSopenharmony_ci
837561847f8eSopenharmony_ci    /**
837661847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
837761847f8eSopenharmony_ci     *
837861847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
837961847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
838061847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
838161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
838261847f8eSopenharmony_ci     * @since 8
838361847f8eSopenharmony_ci     */
838461847f8eSopenharmony_ci    /**
838561847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
838661847f8eSopenharmony_ci     *
838761847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
838861847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
838961847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
839061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
839161847f8eSopenharmony_ci     * @crossplatform
839261847f8eSopenharmony_ci     * @since 10
839361847f8eSopenharmony_ci     */
839461847f8eSopenharmony_ci    /**
839561847f8eSopenharmony_ci     * Compresses or packs an image and uses a callback to return the result.
839661847f8eSopenharmony_ci     *
839761847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
839861847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
839961847f8eSopenharmony_ci     * @param { AsyncCallback<ArrayBuffer> } callback Callback used to return the packed data.
840061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
840161847f8eSopenharmony_ci     * @crossplatform
840261847f8eSopenharmony_ci     * @atomicservice
840361847f8eSopenharmony_ci     * @since 11
840461847f8eSopenharmony_ci     */
840561847f8eSopenharmony_ci    packing(source: PixelMap, option: PackingOption, callback: AsyncCallback<ArrayBuffer>): void;
840661847f8eSopenharmony_ci
840761847f8eSopenharmony_ci    /**
840861847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
840961847f8eSopenharmony_ci     *
841061847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
841161847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
841261847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
841361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
841461847f8eSopenharmony_ci     * @since 8
841561847f8eSopenharmony_ci     */
841661847f8eSopenharmony_ci    /**
841761847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
841861847f8eSopenharmony_ci     *
841961847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
842061847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
842161847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
842261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
842361847f8eSopenharmony_ci     * @crossplatform
842461847f8eSopenharmony_ci     * @since 10
842561847f8eSopenharmony_ci     */
842661847f8eSopenharmony_ci    /**
842761847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
842861847f8eSopenharmony_ci     *
842961847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
843061847f8eSopenharmony_ci     * @param { PackingOption } option Option for image packing.
843161847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
843261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
843361847f8eSopenharmony_ci     * @crossplatform
843461847f8eSopenharmony_ci     * @atomicservice
843561847f8eSopenharmony_ci     * @since 11
843661847f8eSopenharmony_ci     */
843761847f8eSopenharmony_ci    packing(source: PixelMap, option: PackingOption): Promise<ArrayBuffer>;
843861847f8eSopenharmony_ci
843961847f8eSopenharmony_ci    /**
844061847f8eSopenharmony_ci     * Compresses or packs some images into an arraybuffer and uses a promise to return the result.
844161847f8eSopenharmony_ci     *
844261847f8eSopenharmony_ci     * @param { Array<PixelMap> } pixelmapSequence PixelMaps to be processed.
844361847f8eSopenharmony_ci     * @param { PackingOptionsForSequence } options Options for image packing.
844461847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the operation result.
844561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
844661847f8eSopenharmony_ci     * @since 13
844761847f8eSopenharmony_ci     */
844861847f8eSopenharmony_ci    packing(pixelmapSequence: Array<PixelMap>, options: PackingOptionsForSequence): Promise<ArrayBuffer>;
844961847f8eSopenharmony_ci
845061847f8eSopenharmony_ci    /**
845161847f8eSopenharmony_ci     * Compresses or packs an image into a file and uses a callback to return the result.
845261847f8eSopenharmony_ci     *
845361847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
845461847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
845561847f8eSopenharmony_ci     * @param { PackingOption } options Options for image packing.
845661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result.
845761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
845861847f8eSopenharmony_ci     * @crossplatform
845961847f8eSopenharmony_ci     * @since 11
846061847f8eSopenharmony_ci     */
846161847f8eSopenharmony_ci    packToFile(source: ImageSource, fd: number, options: PackingOption, callback: AsyncCallback<void>): void;
846261847f8eSopenharmony_ci
846361847f8eSopenharmony_ci    /**
846461847f8eSopenharmony_ci     * Compresses or packs an image into a file and uses a promise to return the result.
846561847f8eSopenharmony_ci     *
846661847f8eSopenharmony_ci     * @param { ImageSource } source Image to be processed.
846761847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
846861847f8eSopenharmony_ci     * @param { PackingOption } options Options for image packing.
846961847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
847061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
847161847f8eSopenharmony_ci     * @crossplatform
847261847f8eSopenharmony_ci     * @since 11
847361847f8eSopenharmony_ci     */
847461847f8eSopenharmony_ci    packToFile(source: ImageSource, fd: number, options: PackingOption): Promise<void>;
847561847f8eSopenharmony_ci
847661847f8eSopenharmony_ci    /**
847761847f8eSopenharmony_ci     * Compresses or packs an image into a file and uses a callback to return the result.
847861847f8eSopenharmony_ci     *
847961847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
848061847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
848161847f8eSopenharmony_ci     * @param { PackingOption } options Options for image packing.
848261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result.
848361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
848461847f8eSopenharmony_ci     * @crossplatform
848561847f8eSopenharmony_ci     * @since 11
848661847f8eSopenharmony_ci     */
848761847f8eSopenharmony_ci    packToFile(source: PixelMap, fd: number, options: PackingOption, callback: AsyncCallback<void>): void;
848861847f8eSopenharmony_ci
848961847f8eSopenharmony_ci    /**
849061847f8eSopenharmony_ci     * Compresses or packs an image into a file and uses a promise to return the result.
849161847f8eSopenharmony_ci     *
849261847f8eSopenharmony_ci     * @param { PixelMap } source PixelMap to be processed.
849361847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
849461847f8eSopenharmony_ci     * @param { PackingOption } options Options for image packing.
849561847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
849661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
849761847f8eSopenharmony_ci     * @crossplatform
849861847f8eSopenharmony_ci     * @since 11
849961847f8eSopenharmony_ci     */
850061847f8eSopenharmony_ci    packToFile(source: PixelMap, fd: number, options: PackingOption): Promise<void>;
850161847f8eSopenharmony_ci
850261847f8eSopenharmony_ci    /**
850361847f8eSopenharmony_ci     * Compresses or packs some images into a file and uses a promise to return the result.
850461847f8eSopenharmony_ci     *
850561847f8eSopenharmony_ci     * @param { Array<PixelMap> } pixelmapSequence PixelMaps to be processed.
850661847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
850761847f8eSopenharmony_ci     * @param { PackingOptionsForSequence } options Options for image packing.
850861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
850961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
851061847f8eSopenharmony_ci     * @since 13
851161847f8eSopenharmony_ci     */
851261847f8eSopenharmony_ci    packToFile(pixelmapSequence: Array<PixelMap>, fd: number, options: PackingOptionsForSequence): Promise<void>;
851361847f8eSopenharmony_ci
851461847f8eSopenharmony_ci     /**
851561847f8eSopenharmony_ci     * Releases an ImagePacker instance and uses a callback to return the result.
851661847f8eSopenharmony_ci     *
851761847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
851861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
851961847f8eSopenharmony_ci     * @since 6
852061847f8eSopenharmony_ci     */
852161847f8eSopenharmony_ci    /**
852261847f8eSopenharmony_ci     * Releases an ImagePacker instance and uses a callback to return the result.
852361847f8eSopenharmony_ci     *
852461847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
852561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
852661847f8eSopenharmony_ci     * @crossplatform
852761847f8eSopenharmony_ci     * @since 10
852861847f8eSopenharmony_ci     */
852961847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
853061847f8eSopenharmony_ci
853161847f8eSopenharmony_ci    /**
853261847f8eSopenharmony_ci     * Releases an ImagePacker instance and uses a promise to return the result.
853361847f8eSopenharmony_ci     *
853461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
853561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
853661847f8eSopenharmony_ci     * @since 6
853761847f8eSopenharmony_ci     */
853861847f8eSopenharmony_ci    /**
853961847f8eSopenharmony_ci     * Releases an ImagePacker instance and uses a promise to return the result.
854061847f8eSopenharmony_ci     *
854161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
854261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
854361847f8eSopenharmony_ci     * @crossplatform
854461847f8eSopenharmony_ci     * @since 10
854561847f8eSopenharmony_ci     */
854661847f8eSopenharmony_ci    release(): Promise<void>;
854761847f8eSopenharmony_ci
854861847f8eSopenharmony_ci    /**
854961847f8eSopenharmony_ci     * Compresses or packs an image and uses a promise to return the result.
855061847f8eSopenharmony_ci     *
855161847f8eSopenharmony_ci     * @param { Picture } picture Picture to be processed.
855261847f8eSopenharmony_ci     * @param { PackingOption } options Option for image packing.
855361847f8eSopenharmony_ci     * @returns { Promise<ArrayBuffer> } A Promise instance used to return the compressed or packed data.
855461847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
855561847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
855661847f8eSopenharmony_ci     * @throws { BusinessError } 7800301 - Encode failed.
855761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
855861847f8eSopenharmony_ci     * @since 13
855961847f8eSopenharmony_ci     */
856061847f8eSopenharmony_ci    packing(picture: Picture, options: PackingOption): Promise<ArrayBuffer>;
856161847f8eSopenharmony_ci
856261847f8eSopenharmony_ci    /**
856361847f8eSopenharmony_ci     * Compresses or packs an image into a file and uses a promise to return the result.
856461847f8eSopenharmony_ci     *
856561847f8eSopenharmony_ci     * @param { Picture } picture Picture to be processed.
856661847f8eSopenharmony_ci     * @param { number } fd ID of a file descriptor.
856761847f8eSopenharmony_ci     * @param { PackingOption } options Options for image packing.
856861847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
856961847f8eSopenharmony_ci     * @throws { BusinessError } 401 - Parameter error.Possible causes: 1.Mandatory parameters are left unspecified.
857061847f8eSopenharmony_ci     * 2.Incorrect parameter types. 3.Parameter verification failed.
857161847f8eSopenharmony_ci     * @throws { BusinessError } 7800301 - Encode failed.
857261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
857361847f8eSopenharmony_ci     * @since 13
857461847f8eSopenharmony_ci     */
857561847f8eSopenharmony_ci    packToFile(picture: Picture, fd: number, options: PackingOption): Promise<void>
857661847f8eSopenharmony_ci
857761847f8eSopenharmony_ci    /**
857861847f8eSopenharmony_ci     * Supported image formats.
857961847f8eSopenharmony_ci     *
858061847f8eSopenharmony_ci     * @type { Array<string> }
858161847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
858261847f8eSopenharmony_ci     * @since 6
858361847f8eSopenharmony_ci     */
858461847f8eSopenharmony_ci    /**
858561847f8eSopenharmony_ci     * Supported image formats.
858661847f8eSopenharmony_ci     *
858761847f8eSopenharmony_ci     * @type { Array<string> }
858861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImagePacker
858961847f8eSopenharmony_ci     * @crossplatform
859061847f8eSopenharmony_ci     * @since 10
859161847f8eSopenharmony_ci     */
859261847f8eSopenharmony_ci    readonly supportedFormats: Array<string>;
859361847f8eSopenharmony_ci  }
859461847f8eSopenharmony_ci
859561847f8eSopenharmony_ci  /**
859661847f8eSopenharmony_ci   * Provides basic image operations, including obtaining image information, and reading and writing image data.
859761847f8eSopenharmony_ci   *
859861847f8eSopenharmony_ci   * @typedef Image
859961847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.Core
860061847f8eSopenharmony_ci   * @since 9
860161847f8eSopenharmony_ci   */
860261847f8eSopenharmony_ci  interface Image {
860361847f8eSopenharmony_ci    /**
860461847f8eSopenharmony_ci     * Sets or gets the image area to crop, default is size.
860561847f8eSopenharmony_ci     *
860661847f8eSopenharmony_ci     * @type { Region }
860761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
860861847f8eSopenharmony_ci     * @since 9
860961847f8eSopenharmony_ci     */
861061847f8eSopenharmony_ci    clipRect: Region;
861161847f8eSopenharmony_ci
861261847f8eSopenharmony_ci    /**
861361847f8eSopenharmony_ci     * Image size.
861461847f8eSopenharmony_ci     *
861561847f8eSopenharmony_ci     * @type { Size }
861661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
861761847f8eSopenharmony_ci     * @since 9
861861847f8eSopenharmony_ci     */
861961847f8eSopenharmony_ci    readonly size: Size;
862061847f8eSopenharmony_ci
862161847f8eSopenharmony_ci    /**
862261847f8eSopenharmony_ci     * Image format.
862361847f8eSopenharmony_ci     *
862461847f8eSopenharmony_ci     * @type { number }
862561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
862661847f8eSopenharmony_ci     * @since 9
862761847f8eSopenharmony_ci     */
862861847f8eSopenharmony_ci    readonly format: number;
862961847f8eSopenharmony_ci
863061847f8eSopenharmony_ci    /**
863161847f8eSopenharmony_ci     * Image timestamp.
863261847f8eSopenharmony_ci     *
863361847f8eSopenharmony_ci     * @type { number }
863461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
863561847f8eSopenharmony_ci     * @since 12
863661847f8eSopenharmony_ci     */
863761847f8eSopenharmony_ci    readonly timestamp: number;
863861847f8eSopenharmony_ci
863961847f8eSopenharmony_ci    /**
864061847f8eSopenharmony_ci     * Get component buffer from image and uses a callback to return the result.
864161847f8eSopenharmony_ci     *
864261847f8eSopenharmony_ci     * @param { ComponentType } componentType The component type of image.
864361847f8eSopenharmony_ci     * @param { AsyncCallback<Component> } callback Callback used to return the component buffer.
864461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
864561847f8eSopenharmony_ci     * @since 9
864661847f8eSopenharmony_ci     */
864761847f8eSopenharmony_ci    getComponent(componentType: ComponentType, callback: AsyncCallback<Component>): void;
864861847f8eSopenharmony_ci
864961847f8eSopenharmony_ci    /**
865061847f8eSopenharmony_ci     * Get component buffer from image and uses a promise to return the result.
865161847f8eSopenharmony_ci     *
865261847f8eSopenharmony_ci     * @param { ComponentType } componentType The component type of image.
865361847f8eSopenharmony_ci     * @returns { Promise<Component> } A Promise instance used to return the component buffer.
865461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
865561847f8eSopenharmony_ci     * @since 9
865661847f8eSopenharmony_ci     */
865761847f8eSopenharmony_ci    getComponent(componentType: ComponentType): Promise<Component>;
865861847f8eSopenharmony_ci
865961847f8eSopenharmony_ci    /**
866061847f8eSopenharmony_ci     * Release current image to receive another and uses a callback to return the result.
866161847f8eSopenharmony_ci     *
866261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
866361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
866461847f8eSopenharmony_ci     * @since 9
866561847f8eSopenharmony_ci     */
866661847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
866761847f8eSopenharmony_ci
866861847f8eSopenharmony_ci    /**
866961847f8eSopenharmony_ci     * Release current image to receive another and uses a promise to return the result.
867061847f8eSopenharmony_ci     *
867161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
867261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.Core
867361847f8eSopenharmony_ci     * @since 9
867461847f8eSopenharmony_ci     */
867561847f8eSopenharmony_ci    release(): Promise<void>;
867661847f8eSopenharmony_ci  }
867761847f8eSopenharmony_ci
867861847f8eSopenharmony_ci  /**
867961847f8eSopenharmony_ci   * Image receiver object.
868061847f8eSopenharmony_ci   *
868161847f8eSopenharmony_ci   * @typedef ImageReceiver
868261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageReceiver
868361847f8eSopenharmony_ci   * @since 9
868461847f8eSopenharmony_ci   */
868561847f8eSopenharmony_ci  interface ImageReceiver {
868661847f8eSopenharmony_ci    /**
868761847f8eSopenharmony_ci     * Image size.
868861847f8eSopenharmony_ci     *
868961847f8eSopenharmony_ci     * @type { Size }
869061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
869161847f8eSopenharmony_ci     * @since 9
869261847f8eSopenharmony_ci     */
869361847f8eSopenharmony_ci    readonly size: Size;
869461847f8eSopenharmony_ci
869561847f8eSopenharmony_ci    /**
869661847f8eSopenharmony_ci     * Image capacity.
869761847f8eSopenharmony_ci     *
869861847f8eSopenharmony_ci     * @type { number }
869961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
870061847f8eSopenharmony_ci     * @since 9
870161847f8eSopenharmony_ci     */
870261847f8eSopenharmony_ci    readonly capacity: number;
870361847f8eSopenharmony_ci
870461847f8eSopenharmony_ci    /**
870561847f8eSopenharmony_ci     * Image format.
870661847f8eSopenharmony_ci     *
870761847f8eSopenharmony_ci     * @type { ImageFormat }
870861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
870961847f8eSopenharmony_ci     * @since 9
871061847f8eSopenharmony_ci     */
871161847f8eSopenharmony_ci    readonly format: ImageFormat;
871261847f8eSopenharmony_ci
871361847f8eSopenharmony_ci    /**
871461847f8eSopenharmony_ci     * Get an id which indicates a surface and can be used to set to Camera or other component can receive a surface
871561847f8eSopenharmony_ci     * and uses a callback to return the result.
871661847f8eSopenharmony_ci     *
871761847f8eSopenharmony_ci     * @param { AsyncCallback<string> } callback Callback used to return the surface id.
871861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
871961847f8eSopenharmony_ci     * @since 9
872061847f8eSopenharmony_ci     */
872161847f8eSopenharmony_ci    getReceivingSurfaceId(callback: AsyncCallback<string>): void;
872261847f8eSopenharmony_ci
872361847f8eSopenharmony_ci    /**
872461847f8eSopenharmony_ci     * Get an id which indicates a surface and can be used to set to Camera or other component can receive a surface
872561847f8eSopenharmony_ci     * and uses a promise to return the result.
872661847f8eSopenharmony_ci     *
872761847f8eSopenharmony_ci     * @returns { Promise<string> } A Promise instance used to return the surface id.
872861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
872961847f8eSopenharmony_ci     * @since 9
873061847f8eSopenharmony_ci     */
873161847f8eSopenharmony_ci    getReceivingSurfaceId(): Promise<string>;
873261847f8eSopenharmony_ci
873361847f8eSopenharmony_ci    /**
873461847f8eSopenharmony_ci     * Get lasted image from receiver and uses a callback to return the result.
873561847f8eSopenharmony_ci     *
873661847f8eSopenharmony_ci     * @param { AsyncCallback<Image> } callback Callback used to return the latest image.
873761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
873861847f8eSopenharmony_ci     * @since 9
873961847f8eSopenharmony_ci     */
874061847f8eSopenharmony_ci    readLatestImage(callback: AsyncCallback<Image>): void;
874161847f8eSopenharmony_ci
874261847f8eSopenharmony_ci    /**
874361847f8eSopenharmony_ci     * Get lasted image from receiver and uses a promise to return the result.
874461847f8eSopenharmony_ci     *
874561847f8eSopenharmony_ci     * @returns { Promise<Image> } A Promise instance used to return the latest image.
874661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
874761847f8eSopenharmony_ci     * @since 9
874861847f8eSopenharmony_ci     */
874961847f8eSopenharmony_ci    readLatestImage(): Promise<Image>;
875061847f8eSopenharmony_ci
875161847f8eSopenharmony_ci    /**
875261847f8eSopenharmony_ci     * Get next image from receiver and uses a callback to return the result.
875361847f8eSopenharmony_ci     *
875461847f8eSopenharmony_ci     * @param { AsyncCallback<Image> } callback Callback used to return the next image.
875561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
875661847f8eSopenharmony_ci     * @since 9
875761847f8eSopenharmony_ci     */
875861847f8eSopenharmony_ci    readNextImage(callback: AsyncCallback<Image>): void;
875961847f8eSopenharmony_ci
876061847f8eSopenharmony_ci    /**
876161847f8eSopenharmony_ci     * Get next image from receiver and uses a promise to return the result.
876261847f8eSopenharmony_ci     *
876361847f8eSopenharmony_ci     * @returns { Promise<Image> } A Promise instance used to return the next image.
876461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
876561847f8eSopenharmony_ci     * @since 9
876661847f8eSopenharmony_ci     */
876761847f8eSopenharmony_ci    readNextImage(): Promise<Image>;
876861847f8eSopenharmony_ci
876961847f8eSopenharmony_ci    /**
877061847f8eSopenharmony_ci     * Subscribe callback when receiving an image
877161847f8eSopenharmony_ci     *
877261847f8eSopenharmony_ci     * @param { 'imageArrival' } type Callback used to return the next image.
877361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return image.
877461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
877561847f8eSopenharmony_ci     * @since 9
877661847f8eSopenharmony_ci     */
877761847f8eSopenharmony_ci    on(type: 'imageArrival', callback: AsyncCallback<void>): void;
877861847f8eSopenharmony_ci
877961847f8eSopenharmony_ci    /**
878061847f8eSopenharmony_ci     * Remove callback subscriptions when releasing buffer
878161847f8eSopenharmony_ci     *
878261847f8eSopenharmony_ci     * @param { 'imageArrival' } type - Event type.
878361847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to be removed.
878461847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
878561847f8eSopenharmony_ci     * @since 13
878661847f8eSopenharmony_ci     */
878761847f8eSopenharmony_ci    off(type: 'imageArrival', callback?: AsyncCallback<void>): void;
878861847f8eSopenharmony_ci
878961847f8eSopenharmony_ci    /**
879061847f8eSopenharmony_ci     * Release image receiver instance and uses a callback to return the result.
879161847f8eSopenharmony_ci     *
879261847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
879361847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
879461847f8eSopenharmony_ci     * @since 9
879561847f8eSopenharmony_ci     */
879661847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
879761847f8eSopenharmony_ci
879861847f8eSopenharmony_ci    /**
879961847f8eSopenharmony_ci     * Release image receiver instance and uses a promise to return the result.
880061847f8eSopenharmony_ci     *
880161847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
880261847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageReceiver
880361847f8eSopenharmony_ci     * @since 9
880461847f8eSopenharmony_ci     */
880561847f8eSopenharmony_ci    release(): Promise<void>;
880661847f8eSopenharmony_ci  }
880761847f8eSopenharmony_ci
880861847f8eSopenharmony_ci  /**
880961847f8eSopenharmony_ci   * Image creator object.
881061847f8eSopenharmony_ci   *
881161847f8eSopenharmony_ci   * @typedef ImageCreator
881261847f8eSopenharmony_ci   * @syscap SystemCapability.Multimedia.Image.ImageCreator
881361847f8eSopenharmony_ci   * @since 9
881461847f8eSopenharmony_ci   */
881561847f8eSopenharmony_ci  interface ImageCreator {
881661847f8eSopenharmony_ci    /**
881761847f8eSopenharmony_ci     * Image capacity.
881861847f8eSopenharmony_ci     *
881961847f8eSopenharmony_ci     * @type { number }
882061847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
882161847f8eSopenharmony_ci     * @since 9
882261847f8eSopenharmony_ci     */
882361847f8eSopenharmony_ci    readonly capacity: number;
882461847f8eSopenharmony_ci
882561847f8eSopenharmony_ci    /**
882661847f8eSopenharmony_ci     * Image format.
882761847f8eSopenharmony_ci     *
882861847f8eSopenharmony_ci     * @type { ImageFormat }
882961847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
883061847f8eSopenharmony_ci     * @since 9
883161847f8eSopenharmony_ci     */
883261847f8eSopenharmony_ci    readonly format: ImageFormat;
883361847f8eSopenharmony_ci
883461847f8eSopenharmony_ci    /**
883561847f8eSopenharmony_ci     * Apply for new graphic buffer from free queue and use a callback to return the result.
883661847f8eSopenharmony_ci     *
883761847f8eSopenharmony_ci     * @param { AsyncCallback<Image> } callback Callback to return the operation result.
883861847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
883961847f8eSopenharmony_ci     * @since 9
884061847f8eSopenharmony_ci     */
884161847f8eSopenharmony_ci    dequeueImage(callback: AsyncCallback<Image>): void;
884261847f8eSopenharmony_ci
884361847f8eSopenharmony_ci    /**
884461847f8eSopenharmony_ci     * Apply for new graphic buffer from free queue and uses a promise to return the result.
884561847f8eSopenharmony_ci     *
884661847f8eSopenharmony_ci     * @returns { Promise<Image> } A Promise instance used to return the operation result.
884761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
884861847f8eSopenharmony_ci     * @since 9
884961847f8eSopenharmony_ci     */
885061847f8eSopenharmony_ci    dequeueImage(): Promise<Image>;
885161847f8eSopenharmony_ci
885261847f8eSopenharmony_ci    /**
885361847f8eSopenharmony_ci     * Queue buffer to dirty queue and uses a callback to return the result.
885461847f8eSopenharmony_ci     *
885561847f8eSopenharmony_ci     * @param { Image } interface
885661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
885761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
885861847f8eSopenharmony_ci     * @since 9
885961847f8eSopenharmony_ci     */
886061847f8eSopenharmony_ci    queueImage(interface: Image, callback: AsyncCallback<void>): void;
886161847f8eSopenharmony_ci
886261847f8eSopenharmony_ci    /**
886361847f8eSopenharmony_ci     * Queue buffer to dirty queue and uses a promise to return the result.
886461847f8eSopenharmony_ci     *
886561847f8eSopenharmony_ci     * @param { Image } interface
886661847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
886761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
886861847f8eSopenharmony_ci     * @since 9
886961847f8eSopenharmony_ci     */
887061847f8eSopenharmony_ci    queueImage(interface: Image): Promise<void>;
887161847f8eSopenharmony_ci
887261847f8eSopenharmony_ci    /**
887361847f8eSopenharmony_ci     * Subscribe callback when releasing buffer
887461847f8eSopenharmony_ci     *
887561847f8eSopenharmony_ci     * @param { 'imageRelease' } type Callback used to return the operation result.
887661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback used to return the operation result.
887761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
887861847f8eSopenharmony_ci     * @since 9
887961847f8eSopenharmony_ci     */
888061847f8eSopenharmony_ci    on(type: 'imageRelease', callback: AsyncCallback<void>): void;
888161847f8eSopenharmony_ci
888261847f8eSopenharmony_ci    /**
888361847f8eSopenharmony_ci     * Remove callback subscriptions when releasing buffer
888461847f8eSopenharmony_ci     *
888561847f8eSopenharmony_ci     * @param { 'imageRelease' } type - Event type.
888661847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to be removed.
888761847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
888861847f8eSopenharmony_ci     * @since 13
888961847f8eSopenharmony_ci     */
889061847f8eSopenharmony_ci    off(type: 'imageRelease', callback?: AsyncCallback<void>): void;
889161847f8eSopenharmony_ci
889261847f8eSopenharmony_ci    /**
889361847f8eSopenharmony_ci     * Releases buffer in bufferqueue instance and uses a callback to return the result.
889461847f8eSopenharmony_ci     *
889561847f8eSopenharmony_ci     * @param { AsyncCallback<void> } callback Callback to return the operation result.
889661847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
889761847f8eSopenharmony_ci     * @since 9
889861847f8eSopenharmony_ci     */
889961847f8eSopenharmony_ci    release(callback: AsyncCallback<void>): void;
890061847f8eSopenharmony_ci
890161847f8eSopenharmony_ci    /**
890261847f8eSopenharmony_ci     * Releases buffer in bufferqueue instance and uses a promise to return the result.
890361847f8eSopenharmony_ci     *
890461847f8eSopenharmony_ci     * @returns { Promise<void> } A Promise instance used to return the operation result.
890561847f8eSopenharmony_ci     * @syscap SystemCapability.Multimedia.Image.ImageCreator
890661847f8eSopenharmony_ci     * @since 9
890761847f8eSopenharmony_ci     */
890861847f8eSopenharmony_ci    release(): Promise<void>;
890961847f8eSopenharmony_ci  }
891061847f8eSopenharmony_ci}
891161847f8eSopenharmony_ci
891261847f8eSopenharmony_ciexport default image;
8913