Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here's my FMX Threaded Component version of DelphiZXingQRCode with all updates from the pull requests! #14

Open
War3Evo opened this issue Oct 7, 2022 · 1 comment

Comments

@War3Evo
Copy link

War3Evo commented Oct 7, 2022

I would have pulled a fork, but decided it was more better to just post a link here.

DelphiZXingQRCode isn't threaded by itself. I created a threaded component that wraps DelphiZXingQRCode inside a thread. You can control the thread speed via ThreadSleep in milliseconds (default is 40). Drop the number to 0 for the quickest results. Yes, in this version you can control the ErrorCorrectionLevel, thanks to the gosanefr pull request update. All the latest updates from the pull requests are in this version.

The OnGenerate* procedures are synchronized, so you should be safe to use them anywhere in your application.

You can check out the sample.pas for the code, but it's best you create a FMX multi device application and then look at the code to help you build your application. I'll update it later with a visual project, cause my Delphi 11 was buggin out like crazy. Delphi doesn't give you updates unless you pay for them. So the 11.2 updates aren't free because my subscription ran out.

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

@War3Evo
Copy link
Author

War3Evo commented Oct 9, 2022

I've updated the component in my repo so that it can create a SVG file.

You can use a open source app like inkscape to resize the SVG without any blurriness.

I think you can also use https://skia4delphi.org/ to use it's SVG viewer.

Star my repo as I plan to add more updates. Follow the link below to find my repo:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant