ZXingBlazor 0.2.6

.NET 6.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package ZXingBlazor --version 0.2.6
NuGet\Install-Package ZXingBlazor -Version 0.2.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZXingBlazor" Version="0.2.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZXingBlazor --version 0.2.6
#r "nuget: ZXingBlazor, 0.2.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ZXingBlazor as a Cake Addin
#addin nuget:?package=ZXingBlazor&version=0.2.6

// Install ZXingBlazor as a Cake Tool
#tool nuget:?package=ZXingBlazor&version=0.2.6

ZXing Blazor Component 0.2.6

English | <a href="README.zh-CN.md">中文</a> | <a href="https://blazor.app1.es/"> Orther Blazor components</a>


Introduction

This project is a Blazor component library packaged with ZXing, Support barcode, QR code, PDF417 format.

Demo

https://zxingblazor.app1.es

https://zxingblazorwasm.app1.es

Nuget

https://www.nuget.org/packages/ZXingBlazor/

Instructions:

  1. NuGet install pack

    ZXingBlazor

  2. _Imports.razor or Razor page

    @using ZXingBlazor.Components
    
  3. Razor page

    Razor
    https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/Index.razor

        <b>Result:</b>
        <br />
        <pre>@BarCode</pre>
    
        <BarcodeReader ScanResult="ScanResult" />
    
    
    @code{
    
        /// <summary>
        /// BarCode
        /// </summary>
        public string? BarCode { get; set; }
    
        private void ScanResult(string e)
        {
            BarCode = e;
            ShowScanBarcode = !ShowScanBarcode;
        }
    }
    
    

Screenshot

ZXingBlazor

New Components

Handwritten 2020.10.05 Sign

ImageViewer 2022.3.6

Updates

2022.11.23 Add optiones

  1. Pdf417Only: decode only Pdf417 format
  2. Decodeonce: decode Once or Decode Continuously, default is Once
  3. DecodeAllFormats: decodde All Formats, performance is poor, you can set options.formats to customize specify the encoding formats. The default is false

2022.3.6 Upgrade to js isolated version, add image browser Viewer component, and upgrade demo project to net6 format

2021.5.13 BarcodeReader supports defining button text and supports multiple languages


now support set button text: code https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/IndexEN.razor demo https://zxingblazor.app1.es/

    <BarcodeReader ScanResult="((e) => { BarCode=e; ShowScanBarcode = !ShowScanBarcode; })"
                   ShowScanBarcode="ShowScanBarcode"
                   Close="(()=>ShowScanBarcode=!ShowScanBarcode)" 
                   ScanBtnTitle="Scan"
                   ResetBtnTitle="Reset"
                   CloseBtnTitle="Close"
                   SelectDeviceBtnTitle="Select Device"
                   />

barcode

Participate in contribution

  1. Fork this project
  2. Create new Feat_xxx branch
  3. Submit the code
  4. New Pull Request

ZXing Blazor 扫码组件 0.2.5

<a href="README.md">English</a> |中文 | <a href="https://blazor.app1.es/"> 其他 Blazor 组件</a>


项目介绍

本项目是利用 ZXing 进行封装的 Blazor 组件库, 支持条码,二维码,PDF417格式.

演示地址

ssr https://zxingblazor.app1.es

wasm https://zxingblazorwasm.app1.es

Nuget 包安装

https://www.nuget.org/packages/ZXingBlazor/

使用步骤:

  1. 安装 NuGet 包

    ZXingBlazor

  2. _Imports.razor 或者 Razor 页面引用

    @using ZXingBlazor.Components
    
  3. Razor 页面代码

    Razor
    https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/Index.razor

        <b>Result:</b>
        <br />
        <pre>@BarCode</pre>
    
        <BarcodeReader ScanResult="ScanResult" />
    
    
    @code{
    
        /// <summary>
        /// BarCode
        /// </summary>
        public string? BarCode { get; set; }
    
        private void ScanResult(string e)
        {
            BarCode = e;
            ShowScanBarcode = !ShowScanBarcode;
        }
    }
    
    

项目截图

ZXingBlazor

新加模块

手写签名 Handwritten 组件 2020.10.05 Sign

图片浏览器Viewer 组件 2022.3.6

更新

2022.11.23 添加选项

  1. Pdf417Only: 只解码 Pdf417 格式 / decode only Pdf417 format
  2. Decodeonce: 单次|连续解码,默认单次 / Decode Once or Decode Continuously, default is Once
  3. DecodeAllFormats: 解码所有编码形式,性能较差, 开启后可用 options.formats 指定编码形式.默认为 false | Decodde All Formats, performance is poor, you can set options.formats to customize specify the encoding formats. The default is false

2022.3.6 升级为js隔离版本,添加图片浏览器 Viewer组件, 演示工程升级为net6格式

2021.5.13 BarcodeReader 支持定义按钮文本,支持多语言


定义按钮文本: code https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/IndexEN.razor demo https://zxingblazor.app1.es/

    <BarcodeReader ScanResult="((e) => { BarCode=e; ShowScanBarcode = !ShowScanBarcode; })"
                   ShowScanBarcode="ShowScanBarcode"
                   Close="(()=>ShowScanBarcode=!ShowScanBarcode)" 
                   ScanBtnTitle="Scan"
                   ResetBtnTitle="Reset"
                   CloseBtnTitle="Close"
                   SelectDeviceBtnTitle="Select Device"
                   />

barcode

参与贡献

  1. Fork 本项目
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on ZXingBlazor:

Package Downloads
FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

BootstrapBlazor.Densen.All

Blazor 组件懒人包

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.7 50 1/26/2023
0.2.6 2,247 11/24/2022
0.2.5 204 11/22/2022
0.2.4 128 11/22/2022
0.2.3 261,548 3/31/2022
0.2.2 328 3/29/2022
0.2.1 276 3/27/2022
0.2.0 3,843 3/6/2022
0.1.6 23,449 5/13/2021
0.1.5 625 2/26/2021
0.1.4 549 10/5/2020
0.1.3 384 10/5/2020
0.1.2 316 9/26/2020
0.1.0 341 9/25/2020