Barcode Plugin for Xojo

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

QRCodeGeneratorDefault constructor with no parameters.

Properties

ForeColorSets the foreground color of the QR code to be generated.
LastErrorReturns indication of last error as ErrorCodeType enum. (NO_ERROR if there was no error)

Methods

GenerateToPDFGenerates a QRCode into a EinhugurPDFWriter.Page object.
GenerateToRawBitmapGenerates a unscaled QRCode into new RawBitmap object.
GenerateToRawBitmapScaledGenerates a QRCode scaled into desired size. This uses image processing scaling which is not the best for QRCodes.
GenerateToRawBitmapStepScaledGenerates 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.
GenerateToSVGStringGenerates 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.
GenerateToSVGStringGenerates 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.
GetMinimumSizeGets minimum size of a QRCode for a given string with a given error correction level.
GetPDFBaseSizeReturns 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 32 bit
  • 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