ts接口获取Pixelmap的imageinfo中有alphatype,但是c接口中没有
//下面是ts返回的数据接口
interface ImageInfo {
size: Size;
density: number;
stride: number;
pixelFormat: PixelMapFormat;
alphaType: AlphaType;
mimeType: string;
isHdr: boolean;
}
//下面是c接口返回的数据结构
typedef struct OhosPixelMapInfos {
/** Image width, in pixels. */
uint32_t width;
/** Image height, in pixels. */
uint32_t height;
/** Number of bytes per row. */
uint32_t rowSize;
/** Pixel format. */
int32_t pixelFormat;
} OhosPixelMapInfos;
没有alphatype
新的NDK接口文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/\_image\_\_\_native\_module-V5\#oh\_pixelmapimageinfo\_getalphatype
https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/media/image/pixelmap-c.md