rageworx / fltk-cpp-barcode

code128, EAN13 and QR code generator for FLTK C++, not JAVA
0 stars 0 forks source link

Implement QR code #3

Open rageworx opened 1 year ago

rageworx commented 1 year ago

~Let refer to https://github.com/ricmoo/QRCode/tree/master/src.~

It is origin, https://github.com/nayuki/QR-Code-generator

rageworx commented 1 year ago

According nayuki's source, result generates as SVG, and FLTK should render SVG to any type.

rageworx commented 1 year ago

Implemented QR code generation. image

rageworx commented 1 year ago

There's issue for UTF-8 encoding. image

rageworx commented 1 year ago

Testing Korean, Hanja(Kanji)

image image

Successfully worked.

rageworx commented 1 year ago

Temporary released to 0.2.0.15. 13bit UTF-8 still need to be tested.

rageworx commented 1 year ago

Transparency, Ok.

rageworx commented 1 year ago

On macOS, there's separated rectangles on the rendering result. Make a method for drawing direct rectangles on empty RGB buffer, not for SVG.

rageworx commented 1 year ago

QR code rendering updated to do not using SVG image to RGB image converting.