The examples described in this article have been tested on Android phones.

Let’s see how it works. You can see that the developed Android app has three buttons: Zoom In to Zoom In, Zoom Out to Zoom In and Save.

Initial page:

You can move the picture freely in the left border. The debug screen below the picture will display the detailed picture matrix information:

After clicking Save button, a Snapshot file will be created based on the latest status of the image on the left and displayed in the ImageView control on the right:

Click the Zoom in button to Zoom out the image:

Click Zoom Out to enlarge the image:

The full code of this Android application developed in Java: github.com/i042416/ima…

For more of Jerry’s original technical articles, please follow the public account “Wang Zixi” or scan the following QR code: