首页 > 解决方案 > 找不到 Xamarin Android 的 PixelFormat 枚举

问题描述

我有以下代码,我在 xamarin android 中创建 ImageReader 实例,如何将图像格式从更改ImageFormatType.Rgb565PixelFormat.RGBA_8888

我无法找到它的库或枚举类。

mImageReader = ImageReader.NewInstance(windowWidth, windowHeight, ImageFormatType.Rgb565, 2)

标签: androidxamarinbitmapxamarin.androidimage-reader

解决方案


In Xamarin, its Format.Rgba8888 (lower case). the doc is here


推荐阅读