539733e5c9
This small commit makes public the "renderResult" method of the "QRCodeWriter" class. The reason to promote this method as public is that I'm facing Business Case where, besides of generating the QR code as a PNG image, I also need to print information about the QR code itself (specifically, the QR version). Navigating through the code of zxing library, I noticed that the com.google.zxing.qrcode.encoder.Encoder allows me to have that (the QR metadata); however, by invoking that class I only have part of the equation (the QRCode DTO) ... I'm still needing to generate the BitMatrix in order to produce the QR image. Here, I have two alternatives: either I invoke the Encoder.encode class by myself and repeat the same logic when invoking the QRCodeWriter.encode method; or I make the renderResult Public, call the Encoder.encode and then I proceed to call the QRCodeWriter.renderResult method with the previous result. |
||
---|---|---|
.github | ||
.reuse | ||
android | ||
android-core | ||
android-integration | ||
core | ||
docs | ||
javase | ||
src | ||
zxing.appspot.com | ||
zxingorg | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
AUTHORS | ||
CHANGES | ||
LICENSE | ||
NOTICE | ||
pom.xml | ||
README.md |
Project in Maintenance Mode Only; Barcode Scanner not available
The project is in maintenance mode, meaning, changes are driven by contributed patches. Only bug fixes and minor enhancements will be considered. The Barcode Scanner app can no longer be published, so it's unlikely any changes will be accepted for it. It does not work with Android 14 and will not be updated. Please don't file an issue for it. There is otherwise no active development or roadmap for this project. It is "DIY".
Get Started Developing
To get started, please visit: https://github.com/zxing/zxing/wiki/Getting-Started-Developing
ZXing ("zebra crossing") is an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.
Supported Formats
1D product | 1D industrial | 2D |
---|---|---|
UPC-A | Code 39 | QR Code |
UPC-E | Code 93 | Data Matrix |
EAN-8 | Code 128 | Aztec |
EAN-13 | Codabar | PDF 417 |
UPC/EAN Extension 2/5 | ITF | MaxiCode |
RSS-14 | ||
RSS-Expanded |
Components
Active
Available in previous releases
Module | Description |
---|---|
cpp | C++ port |
iphone | iPhone client |
objc | Objective C port |
actionscript | Partial ActionScript port |
jruby | JRuby wrapper |
ZXing-based third-party open source projects
Module | Description |
---|---|
SCodes | Qt & Qml wrapper |
QZXing | port to Qt framework |
glassechidna/zxing-cpp | port to C++ (forked from the deprecated official C++ port) |
zxing-cpp/zxing-cpp | latest/active port to C++, includes Android, C, iOS, .NET, Rust, Python, WASM and WinRT wrappers |
zxing_cpp.rb | bindings for Ruby (not just JRuby), powered by zxing-cpp |
jsqrcode | port to JavaScript |
python-zxing | bindings for Python |
ZXing .NET | port to .NET and C#, and related Windows platform |
php-qrcode-detector-decoder | port to PHP |
ZXing Delphi | Port to native Delphi object pascal, targeted at Firemonkey compatible devices (IOS/Android/Win/OSX) and VCL. |
ZXingObjC | Port to Objective-C |
php-zxing | PHP wrapper to Zxing Java library |
zxing-js/library | TypeScript port of ZXing library |
pyzxing | Python wrapper to ZXing library |
zxing-dart | Port to dart |
rxing | Port to rust |
Other related third-party open source projects
Module | Description |
---|---|
Barcode4J | Generator library in Java |
BoofCV | Generator and reader library in Java |
ZBar | Reader library in C99 |
OkapiBarcode | Generator library in Java |
Links
Etcetera
QR code is trademarked by Denso Wave, inc. Thanks to Haase & Martin OHG for contributing the logo.