Barcode Plugin for Xojo

QRCodeGenerator Class (console safe)

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

QRCodeGenerator (console safe) Default constructor with no parameters.

Properties

BackColor (console safe) Sets the background color for the QR Code
ForeColor (console safe) Sets the foreground color of the QR code to be generated.
LastError (console safe) Returns indication of last error as ErrorCodeType enum. (NO_ERROR if there was no error)

Methods

GenerateToPDF (console safe) Generates a QRCode into a EinhugurPDFWriter.Page object.
GenerateToRawBitmap (console safe) Generates a unscaled QRCode into new RawBitmap object.
GenerateToRawBitmapScaled (console safe) Generates a QRCode scaled into desired size. This uses image processing scaling which is not the best for QRCodes.
GenerateToRawBitmapStepScaled (console safe) 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 (console safe) 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 (console safe) 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 (console safe) Gets minimum size of a QRCode for a given string with a given error correction level.
GetPDFBaseSize (console safe) Returns the size of a QR code with given data, errorCorrection and border settings on a PDF using base size 1.0.

Enumerations

ErrorCorrectionTypeA Enum representing error correction modes for the QRCodes. The size of the QRCode increases with higher level of error correction mode.
ErrorCodeTypeA enum representing error codes that can be returned by the LastError property.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS