diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index 61d93ed4c9ede113576dee546250b91ad7a91eb8..77cdb22a0656970b363dc0c148dea2e51a29fcd8 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -2756,6 +2756,114 @@ typedef enum { * @since 20 */ NODE_IMAGE_SYNC_LOAD = 4012, + /** + * @brief Defines the image decoding size attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: width of the image decoding, in px.\n + * .value[1].i32: height of the image decoding, in px.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: width of the image decoding, in px.\n + * .value[1].i32: height of the image decoding, in px.\n + * + * @since 21 + */ + NODE_IMAGE_SOURCE_SIZE = 4013, + /** + * @brief Defines the display tranformation matrix for an image. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0...15].f32: 16 floating-point numbers.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0...15].f32: 16 floating-point numbers.\n + * + * @since 21 + */ + NODE_IMAGE_IMAGE_MATRIX = 4014, + /** + * @brief Defines the image follow text direction attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to follows the text direction.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to follows the text direction.\n + * + * @since 21 + */ + NODE_IMAGE_MATCH_TEXT_DIRECTION = 4015, + /** + * @brief Defines the image copy attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: copy option {@link ArkUI_CopyOptions}. The default value is ARKUI_COPY_OPTIONS_NONE.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: copy option {@link ArkUI_CopyOptions.\n + * + * @since 21 + */ + NODE_IMAGE_COPY_OPTION = 4016, + /** + * @brief Defines the image AI analysis enable attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: whether to enable AI analysis for the image.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: whether to enable AI analysis for the image.\n + * + * @since 21 + */ + NODE_IMAGE_ENABLE_ANALYZER = 4017, + /** + * @brief Defines the image dynamic display range attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: dynamic range mode {@link ArkUI_DynamicRangeMode}. + * The default value is ARKUI_DYNAMIC_RANGE_MODE_STANDARD.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: dynamic range mode {@link ArkUI_DynamicRangeMode.\n + * + * @since 21 + */ + NODE_IMAGE_DYNAMIC_RANGE_MODE = 4018, + /** + * @brief Defines the image dynamic display brightness attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].f32: hdr brightness. value range [0, 1]\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].f32: hdr brightness. value range [0, 1]\n + * + * @since 21 + */ + NODE_IMAGE_HDR_BRIGHTNESS = 4019, + /** + * @brief Defines the image display direction attribute. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].i32: orientation {@link ArkUI_Orientation}. + * The default value is ARKUI_ORIENTATION_UP.\n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].i32: orientation {@link ArkUI_Orientation.\n + * + * @since 21 + */ + NODE_IMAGE_ORIENTATION = 4020, /** * @brief Defines the color of the component when it is selected. * This attribute can be set, reset, and obtained as required through APIs. diff --git a/arkui/ace_engine/native/native_type.h b/arkui/ace_engine/native/native_type.h index 3bfa0c36dc25d8298fcc4a207a499250e009a8f4..7cef398b2d6b7cbab8dec555464d44799d0898fa 100644 --- a/arkui/ace_engine/native/native_type.h +++ b/arkui/ace_engine/native/native_type.h @@ -1374,6 +1374,46 @@ typedef enum { ARKUI_IMAGE_INTERPOLATION_HIGH, } ArkUI_ImageInterpolation; +/** + * @brief Enumerates the image dynamic range mode. + * + * @since 21 + */ +typedef enum { + /** high dynamic range mode. */ + ARKUI_DYNAMIC_RANGE_MODE_HIGH = 0, + /** constraint dynamic range mode. */ + ARKUI_DYNAMIC_RANGE_MODE_CONSTRAINT, + /** standard dynamic range mode. */ + ARKUI_DYNAMIC_RANGE_MODE_STANDARD, +} ArkUI_DynamicRangeMode; + +/** + * @brief Enumerates the image rotate orientation. + * + * @since 21 + */ +typedef enum { + /** Use EXIF metadata for display orientation, with support for rotation and mirroring. */ + ARKUI_ORIENTATION_AUTO = 0, + /** Display original pixel data without transformation. */ + ARKUI_ORIENTATION_UP, + /** Display the image after rotating it 90 degrees clockwise. */ + ARKUI_ORIENTATION_RIGHT, + /** Display the image after rotating it 180 degrees clockwise. */ + ARKUI_ORIENTATION_DOWN, + /** Display the image after rotating it 270 degrees clockwise. */ + ARKUI_ORIENTATION_LEFT, + /** Display the image after flipping it horizontally. */ + ARKUI_ORIENTATION_UP_MIRRORED, + /** Display the image after flipping it horizontally and then rotating it 90 degrees clockwise. */ + ARKUI_ORIENTATION_RIGHT_MIRRORED, + /** Display the image after flipping it vertically. */ + ARKUI_ORIENTATION_DOWN_MIRRORED, + /** Display the image after flipping it horizontally and then rotating it 270 degrees clockwise. */ + ARKUI_ORIENTATION_LEFT_MIRRORED, +} ArkUI_ImageRotateOrientation; + /** * @brief Enumerates the blend modes. *