android - 找不到 Xamarin Android 的 PixelFormat 枚举
问题描述
我有以下代码,我在 xamarin android 中创建 ImageReader 实例,如何将图像格式从更改ImageFormatType.Rgb565
为PixelFormat.RGBA_8888
我无法找到它的库或枚举类。
mImageReader = ImageReader.NewInstance(windowWidth, windowHeight, ImageFormatType.Rgb565, 2)
解决方案
In Xamarin, its Format.Rgba8888
(lower case). the doc is here
推荐阅读
- java - 当我正在读取的文件存在时,Java 程序给了我 FileNotFoundException,但如果我处理异常,则工作得很好
- java - 将 Oracle Java 存储过程连接到 MySQL
- keycloak - 从 Nodejs 访问 Keycloak 组属性
- spring - Spring Security 5 oauth2 登录
- reactjs - Chrome 加载 React 应用程序中的“WebExtension::executeScript:内容脚本注入 VM149:1”
- python - 在函数启动时初始化新类时出错
- scroll - 如何使用触摸板在 Windows 上的 Netbeans 8.2 中启用水平滚动?
- php - 使用 PHP SDK 向 Twilio Studio 发送可选参数以触发 Flow
- excel - ActiveWorkbook.Names.Add 生成错误“此名称的语法不正确”。
- java - Pivotal 服务器实例抛出错误“无法启动组件”,但对于不同目录中的同一实例工作正常