The **Image** module provides APIs for image processing. You can use the APIs to create a **PixelMap** object with specified properties or read image pixel data (even in an area).
> **NOTE**
>
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
...
@@ -11,11 +13,12 @@ import image from '@ohos.multimedia.image';
| Promise\<void> | Promise used to return the result. If the operation fails, an error message is returned.|
**Example**
```js
asyncfunction(){
awaitpixelMap.opacity(0.5);
}
```
### createAlphaPixelmap<sup>9+</sup>
createAlphaPixelmap(): Promise\<PixelMap>
Creates a **PixelMap** object that contains only the alpha channel information. This object can be used for the shadow effect. This API uses a promise to return the result.
Creates a **PixelMap** object that contains only the alpha channel information. This object can be used for the shadow effect. This API uses an asynchronous callback to return the result.
Provides APIs to obtain image information. Before calling any API in **ImageSource**, you must use **createImageSource** to create an **ImageSource** instance.