From 285b0097b42697c59a8abf4aa327af978a8ff47c Mon Sep 17 00:00:00 2001 From: wusongqing Date: Fri, 27 Aug 2021 17:42:27 +0800 Subject: [PATCH] added English version of NativeImage readme Signed-off-by: wusongqing --- native/NativeImage/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 native/NativeImage/README.md diff --git a/native/NativeImage/README.md b/native/NativeImage/README.md new file mode 100644 index 0000000000..25fda3f669 --- /dev/null +++ b/native/NativeImage/README.md @@ -0,0 +1,19 @@ +# Native_image + + + +### Introduction + +Native_image provides access to pixel data and pixel map information. This sample shows how to declare a Java Native Interface (JNI) and use the JNI to lock, access, or unlock the pixel data. + +### Usage + +1. When you touch **AccessPixels**, the call result is displayed. (**AccessPixels** is used to obtain the memory address of a given **PixelMap** object and lock the memory.) + +2. When you touch **GetImageInfo**, the **PixelMap** object information is displayed. + +3. When you touch **UnAccessPixels**, the call result is displayed. (**UnAccessPixels** is used to unlock the memory.) + +### Constraints + +This sample can only be run on large-system devices. -- Gitee