QRCodeGenerator Class
A class to generate QRCodes. The class can generate QRCodes into RawBitmap objects or return a SVG string that can be saved into SVG file.
Object
QRCodeGenerator
class QRCodeGenerator
Constructors
Properties
ForeColor | Sets the foreground color of the QR code to be generated. |
LastError | Returns indication of last error as ErrorCodeType enum. (NO_ERROR if there was no error) |
Methods
GenerateToPDF | Generates a QRCode into a EinhugurPDFWriter.Page object. |
GenerateToRawBitmap | Generates a unscaled QRCode into new RawBitmap object. |
GenerateToRawBitmapScaled | Generates a QRCode scaled into desired size. This uses image processing scaling which is not the best for QRCodes. |
GenerateToRawBitmapStepScaled | Generates a QRCode scaled in incremental steps, 2x, 3x, 4x, etc. This type of scaling for QRCode will not come at loss in quality of the code. |
GenerateToSVGString | Generates a QRCode into a SVG vector format, returned as string which can then be saved into SVG file. This variation does now allow choosing the error correction level. |
GenerateToSVGString | Generates a QRCode into a SVG vector format, returned as string which can then be saved into SVG file. This variation allows choosing the error correction level. |
GetMinimumSize | Gets minimum size of a QRCode for a given string with a given error correction level. |
GetPDFBaseSize | Returns the size of a QR code with given data, errorCorrection and border settings on a PDF using base size 1.0. |
Enumerations
ErrorCorrectionType | A Enum representing error correction modes for the QRCodes. The size of the QRCode increases with higher level of error correction mode. |
ErrorCodeType | A enum representing error codes that can be returned by the LastError property. |
Supported Platforms:
macOS Intel 32 bitmacOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS