diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index afac2eab1..b527b13d8 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -15038,21 +15038,6 @@ int32_t OH_ArkUI_UnregisterLayoutCallbackOnNodeHandle(ArkUI_NodeHandle node); */ int32_t OH_ArkUI_UnregisterDrawCallbackOnNodeHandle(ArkUI_NodeHandle node); -/** - * @brief Get the snapshot pixelmap for the given node synchronously, will get error if the node is not on the - * tree or is not rendered yet. - * Note: the pixelmap should be released through OH_PixelmapNative_Release when it's not used any more. - * - * @param node Indicates the target node. - * @param snapshotOptions the given configuration for taking snapshot, can be null for using default. - * @param pixelmap Pixelmap pointer created by system, it's the out result. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_INTERNAL_ERROR} if the snapshot taking failed will null pixelmap returned. - * Returns {@link ARKUI_ERROR_CODE_COMPONENT_SNAPSHOT_TIMEOUT} if the snapshot taking is timeout. - * @since 15 - */ /** * @brief Obtains a snapshot of a given component. If the node is not in the component tree or has not been rendered, * the snapshot operation will fail. When the Pixelmap object created is no longer in use, it should be released @@ -15074,7 +15059,7 @@ int32_t OH_ArkUI_UnregisterDrawCallbackOnNodeHandle(ArkUI_NodeHandle node); * dynamic range mode is not supported. * Returns {@link ARKUI_ERROR_CODE_COMPONENT_SNAPSHOT_AUTO_NOT_SUPPORTED} if the isAuto parameter of the color * space or dynamic range mode is set to true for offscreen node snapshot. - * @since 23 + * @since 15 */ int32_t OH_ArkUI_GetNodeSnapshot(ArkUI_NodeHandle node, ArkUI_SnapshotOptions* snapshotOptions, OH_PixelmapNative** pixelmap); diff --git a/zh-cn/arkui/ace_engine/native/native_node.h b/zh-cn/arkui/ace_engine/native/native_node.h index e2adc1195..57ffd015a 100644 --- a/zh-cn/arkui/ace_engine/native/native_node.h +++ b/zh-cn/arkui/ace_engine/native/native_node.h @@ -12985,21 +12985,6 @@ int32_t OH_ArkUI_UnregisterLayoutCallbackOnNodeHandle(ArkUI_NodeHandle node); */ int32_t OH_ArkUI_UnregisterDrawCallbackOnNodeHandle(ArkUI_NodeHandle node); -/** - * @brief Get the snapshot pixelmap for the given node synchronously, will get error if the node is not on the - * tree or is not rendered yet. - * Note: the pixelmap should be released through OH_PixelmapNative_Release when it's not used any more. - * - * @param node Indicates the target node. - * @param snapshotOptions the given configuration for taking snapshot, can be null for using default. - * @param pixelmap Pixelmap pointer created by system, it's the out result. - * @return Returns the result code. - * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. - * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. - * Returns {@link ARKUI_ERROR_CODE_INTERNAL_ERROR} if the snapshot taking failed will null pixelmap returned. - * Returns {@link ARKUI_ERROR_CODE_COMPONENT_SNAPSHOT_TIMEOUT} if the snapshot taking is timeout. - * @since 15 - */ /** * @brief Obtains a snapshot of a given component. If the node is not in the component tree or has not been rendered, * the snapshot operation will fail. When the Pixelmap object created is no longer in use, it should be released @@ -13021,7 +13006,7 @@ int32_t OH_ArkUI_UnregisterDrawCallbackOnNodeHandle(ArkUI_NodeHandle node); * dynamic range mode is not supported. * Returns {@link ARKUI_ERROR_CODE_COMPONENT_SNAPSHOT_AUTO_NOT_SUPPORTED} if the isAuto parameter of the color * space or dynamic range mode is set to true for offscreen node snapshot. - * @since 23 + * @since 15 */ int32_t OH_ArkUI_GetNodeSnapshot(ArkUI_NodeHandle node, ArkUI_SnapshotOptions* snapshotOptions, OH_PixelmapNative** pixelmap);