From 2ccfef45fd199f83932dc19aa3032680f814df65 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Thu, 20 Apr 2023 08:58:28 +0000 Subject: [PATCH] update en/application-dev/reference/native-apis/image.md. Signed-off-by: zengyawen --- .../reference/native-apis/image.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/en/application-dev/reference/native-apis/image.md b/en/application-dev/reference/native-apis/image.md index 45fefe95dc..218c78042c 100644 --- a/en/application-dev/reference/native-apis/image.md +++ b/en/application-dev/reference/native-apis/image.md @@ -677,6 +677,31 @@ Returns OHOS_IMAGE_RESULT_SUCCESS if the operation is successful; returns an err AccessPixels +### OH_PixelMap_AccessPixels() + + +``` +int32_t OH_PixelMap_AccessPixels(const NativePixelMap* native, void** addr) +``` +**Description:**
+Obtains the memory address of a **NativePixelMap** object and locks the memory. + + **Parameters** + +| Name | Description | +| -------- | -------- | +| native | Indicates the pointer to a **NativePixelMap** object. | +| addr | Indicates the double pointer to the memory address. | + +**Returns** + +Returns OHOS_IMAGE_RESULT_SUCCESS if the operation is successful; returns an error code otherwise. + + **See** + +UnAccessPixels + + ### OH_UnAccessPixels() -- GitLab