Xojo 2013r1 or later.

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

QRCodeGeneratorDefault constructor with no parameters.

Properties

LastError (console safe) Returns indication of last error as ErrorCodeType enum. (NO_ERROR if there was no error)

Methods

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 allows 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 does now allow choosing the error correction level.
GetMinimumSize (console safe) Gets minimum size of a QRCode for a given string with a given error correction level.

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 X Carbon
  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM