hi_mpi_rgn_get_canvas_info
The
The
Description
Obtains the canvas information of a region.
Restrictions
- The regions must be created before you call this API.
- This API is used to import bitmap data of the OVERLAYEX type.
- This API is used to obtain the canvas information corresponding to a region. After obtaining the canvas address, you can directly operate the canvas. For example, you can fill the canvas with bitmap data. Then, call hi_mpi_rgn_update_canvas to update the display canvas data.
Prototype
hi_s32 hi_mpi_rgn_get_canvas_info(hi_rgn_handle handle, hi_rgn_canvas_info *canvas_info)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
handle |
Input |
Region handle ID. Value range: [0, 1024) |
canvas_info |
Output |
Canvas information corresponding to the region. |
Returns
- 0: success.
- Other values: failure. For details, see Region Management Return Codes.
Parent topic: Region Management