* * *

Author Topic: QRCodeGenLib4Pascal  (Read 1055 times)

Xor-el

  • Full Member
  • ***
  • Posts: 197
QRCodeGenLib4Pascal
« on: October 13, 2018, 12:10:25 am »
QRCodeGenLib4Pascal

Generates QR Codes from text strings and byte arrays.

QRCodeGenLib4Pascal is a PurePascal Delphi/FPC compatible library that provides an easy to use interface for generating QR Codes.

Features

Core features:

    Supports encoding all 40 versions (sizes) and all 4 error correction levels, as per the QR Code Model 2 standard
    Output formats: Raw modules/pixels of the QR symbol, SVG XML string/file, ImageObject(bmp, jpg and png).
    Encodes numeric and special-alphanumeric text in less space than general text
    Ability to change the backgound and foreground colors of the generated QRCode.

Manual parameters:

    User can specify minimum and maximum version numbers allowed, then library will automatically choose smallest version in the range that fits the data
    User can specify mask pattern manually, otherwise library will automatically evaluate all 8 masks and select the optimal one
    User can specify absolute error correction level, or allow the library to boost it if it doesn't increase the version number
    User can create a list of data segments manually and add ECI segments

Demos

Check out the QRCodeGenLib.Demo folder.

Link:

https://github.com/Xor-el/QRCodeGenLib4Pascal
« Last Edit: October 13, 2018, 12:14:47 am by Xor-el »

Alextp

  • Hero Member
  • *****
  • Posts: 700
    • UVviewsoft
Re: QRCodeGenLib4Pascal
« Reply #1 on: October 13, 2018, 07:44:41 am »

jwdietrich

  • Hero Member
  • *****
  • Posts: 980
    • formatio reticularis
Re: QRCodeGenLib4Pascal
« Reply #2 on: October 13, 2018, 08:31:42 am »
Does the library depend on an online connection (where a server generates the QR code) or is it self-contained and able to provide offline functionality?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 1.8.4 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

Xor-el

  • Full Member
  • ***
  • Posts: 197
Re: QRCodeGenLib4Pascal
« Reply #3 on: October 13, 2018, 08:47:27 am »
Does the library depend on an online connection (where a server generates the QR code) or is it self-contained and able to provide offline functionality?

Nope, it's self contained.
Does not require internet connection.

Xor-el

  • Full Member
  • ***
  • Posts: 197
Re: QRCodeGenLib4Pascal
« Reply #4 on: October 13, 2018, 09:35:29 am »
@Alextp, thanks a lot for the wiki page. :)

jshah

  • Full Member
  • ***
  • Posts: 119
Re: QRCodeGenLib4Pascal
« Reply #5 on: October 13, 2018, 10:34:48 am »
If possible please add to ONLINE PACKAGE MANAGER


Xor-el

  • Full Member
  • ***
  • Posts: 197
Re: QRCodeGenLib4Pascal
« Reply #6 on: October 16, 2018, 12:05:28 pm »
If possible please add to ONLINE PACKAGE MANAGER

added to Online Package Manager.

jshah

  • Full Member
  • ***
  • Posts: 119
Re: QRCodeGenLib4Pascal
« Reply #7 on: October 16, 2018, 12:38:50 pm »
Thanks

Now all user of Lazarus Can see that library

Thaddy

  • Hero Member
  • *****
  • Posts: 7140
Re: QRCodeGenLib4Pascal
« Reply #8 on: October 16, 2018, 02:27:33 pm »
@Xor-el
Very very nice code -again - indeed! compliments.
inline variables like in D10.3 are a bit like Brexit: if you are given the wrong information it sounds like a good idea. Every kid loves candy, but it makes you fat and your teeth will disappear.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus