AGK for Pascal
TAgkImage.EncodeQR Method

Encodes the given text into a QR code and returns a new image containing that code.

class function EncodeQR(const Owner: TAgkObject; const Text: String; const ErrorLevel: Integer): TAgkImage; static;
const Owner: TAgkObject 
the object that will become owner of the QR image (eg. a TAgkScene object). 
const Text: String 
The text to encode. 
const ErrorLevel: Integer 
The level of error correction to include in the code from 0 (lowest) to 3 (highest) 

You can select the amount of error correction included in the code to allow part of the QR code to become damaged but still be readable. The higher the error correction level the more likely it is that a damaged or obscured QR code will be read correctly, but higher error correction levels may produce a larger QR code. Level 0 still provides a minimal level of error correction rather than none.

Copyright (c) 2012. All rights reserved.