Jump to content
Al T

gtDelphiZXingQRCode QR code (FMX, Threaded, Color Pixels, SVG, BMP Component)

Recommended Posts

gtDelphiZXingQRCode is a fork of the out dated DelphiZXingQRCode

 

https://github.com/War3Evo/gtDelphi/tree/master/gtDelphiZXingQRCode

 

DelphiZXingQRCode has not been updated for 9 years and all the pull requests are being ignored.  So, I downloaded the file and started adding new life to the project.  I was going to fork it, but I wanted to rename it slightly.  I still give credit where it's due.

 

I have mainly been focusing on the FMX side of the source code.

 

What's new?

 

It now has a non-visual FMX component that is threaded for background work.  I know if I want to get this library ready for Android usage, it needs to be threaded.

 

It can create both SVG and BMP file data.

 

You can change the pixel colors while it's creating the SVG / BMP file data.  I changed the black to blue and the white to violet... My Google pixel was still able to recognize the QR code quickly!

 

There's a option to not use "inner style" in order to be compatible with Skia4Delphi.

 

Road Map:

 

I plan to create another SampleFMX application just for incorporating Skia4Delphi.  Skia4Delphi has a SVG viewer that I wish to integrate with the component for those whom also want to use Skia4Delphi.

 

I need to add resizing capabilities.  If I can figure out how to resize the SVG version, then I can create the SVG version...resize it to any size then save it as BMP.  Resizing BMP makes the QR code unusable. 

 

I eventually want to incorporate the QR code reader from Delphi ZXing and also include a better third party camera into gtDelphiZXingQRCode.

 

Any other ideas are welcome.

  • Like 3
  • Thanks 2

Share this post


Link to post

I would concur with creating your own Repository.

Also, please don't leave us purely VCL programmers behind.  🙂

  • Like 2

Share this post


Link to post

I will look into both of your suggestions and update this post on the actions taken.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×