b4415e2d创建于 2025年12月20日历史提交

Image_PositionArea

typedef struct Image_PositionArea {...} Image_PositionArea

Overview

The struct describes the area of image pixels to be read from or written to.

Since: 22

Related module: Image_NativeModule

Header file: image_common.h

Summary

Member Variables

Name Description
uint8_t *pixels Pointer to the image pixel data for reading or writing. Only pixel data in the BRGA_8888 format is supported.
size_t pixelsSize Length of the pixel data, in bytes.
uint32_t offset Offset for reading or writing data, in bytes.
uint32_t stride Stride of the region, that is, the number of bytes occupied by each row of pixels. The value of stride must be greater than or equal to the value of region.size.width multiplied by 4.
Image_Region region Area for reading or writing. The region's width plus the X coordinate must not exceed the original image's width, and the region's height plus the Y coordinate must not exceed the original image's height.