README.md
1# Image Processing
2
3### Introduction
4
5This sample demonstrates the image processing function.
6
7In this sample, [\<TextArea>](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/arkui-ts/ts-basic-components-textarea.md) is used to implement multi-line text input, [mediaLibrary](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-mediaquery.md) is used to obtain images from albums, [image](https://gitee.com/openharmony/docs/blob/master/en/application-dev/reference/apis/js-apis-image.md) is used to generate pixel maps, and **scale()**, **crop()**, and **rotate()** of the **pixelMap** class are used to scale, crop, and rotate images.
8
9### Usage
10
111. Touch **Add image** on the offering review page. The page for selecting images is displayed.
12
132. Select the images to be displayed. You can select six images at most.
14
153. Select an image and touch **Next**. The image editing page is displayed. To scale an image, touch **scale** and then touch **narrow** or **amplification**. To crop the image, touch **crop** and select a crop ratio. To rotate the image, touch **rotate**.To decode the image, touch **update hdr setting**.
16
174. After finishing editing the image, touch **OK**. The page for posting comments is displayed, with the images shown. You can touch **Add image** to add more images.
18
195. Select an image and touch **Next**. The image editing page is displayed.
20
216. Touch the back button to exit the app.
22
23### Preview
24
25  
26
27### Required Permissions
28
29[ohos.permission.READ_MEDIA](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md), which allows an app to read media files from the user's external storage.
30
31### Dependency
32
33N/A
34
35### Constraints
36
371. This sample can only be run on standard-system devices that use the Rockchip RK3568 chip.
38
392. This sample is based on the stage model, which is supported from API version 12 (API Version 12 5.0.0.26).
40
413. DevEco Studio (4.1.3.500) must be used.
42