.NET MAUI二维码扫描器 Use IronQR to scan QR codes in a .NET MAUI mobile application. Pick an image from the device library with FilePicker.Default.PickAsync, load it using AnyBitmap.FromFile, and decode it with QrReader.Read. Works on Android and iOS from a single shared codebase. 5-step guide for building a MAUI QR code scanner 使用 IronQr; 使用 IronSoftware.Drawing; var images = await FilePicker.Default.PickAsync(new PickOptions { FileTypes = FilePickerFileType.Images }); var inputBmp = AnyBitmap.FromFile(images.FullPath.ToString()); IEnumerable results = reader.Read(imageInput); 代码解释 FilePicker.Default.PickAsync opens the native image picker on the current platform, filtered to image types. The selected file's full path is retrieved with images.FullPath.ToString() and passed to AnyBitmap.FromFile, which loads it into a bitmap regardless of format. A QrImageInput wraps that bitmap so IronQR can work with it, and QrReader.Read returns an IEnumerable<QrResult>. First().Value extracts the decoded string from the first result. Explore the Full .NET MAUI QR Code Scanner Tutorial with IronQR. 相关文档链接 在GitHub上查看 相关教程 相关操作指南 类文档 下载IronQR DLL 报告此页面的问题 准备开始了吗? Nuget 下载 63,625 | 版本: 2026.4 刚刚发布 免费试用 免费 NuGet 下载 总下载量:63,625 查看许可证 还在滚动吗? 想快速获得证据? PM > Install-Package IronQR 运行示例 观看您的 URL 变成 QR 代码。 免费 NuGet 下载 总下载量:63,625 查看许可证