From 3575073ffb16b52e4e10af84b47ecabc23345fd3 Mon Sep 17 00:00:00 2001 From: ZouQianshun Date: Fri, 24 Jul 2026 10:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E6=AE=B5=E6=B3=A8=E9=87=8A=E5=90=88?= =?UTF-8?q?=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ZouQianshun 🤖‍ AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] --- arkui/ace_engine/native/native_node.h | 17 +---------------- zh-cn/arkui/ace_engine/native/native_node.h | 17 +---------------- 2 files changed, 2 insertions(+), 32 deletions(-) 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);