Xojo 2013r1 or later.

iOSBarcodeGenerator Class

A class to generate Barcodes. The class can generate Barcodes into iOSBitmap objects or return a SVG Text that can be saved into SVG file.

The class currently supports generating the following Barcode formats:
  • Code 128
  • EAN8
  • EAN13

    Note this class is supplied as Xojo class rather than plugin.


    class iOSBarcodeGenerator


    iOSBarcodeGeneratorConstructor with no parameters.


    BackColorSets the background color
    BarWidthSets or gets the desired width of each bar in the Barcode.
    ForeColorSets the color of the bars and text.
    HeightSets or gets the desired height of the Barcode.
    HeightRatioSets desired height ratio of the Barcode. This property does nothing if the UseHeightRatio property is false.
    IncludeLeadingAndTralingBracketsIf set to true then leading and trailing brackets are included if the selected Barcode standard requires them. This property is default set to true.
    LastErrorReturns error code indicating last error that occurred or NO_ERROR if there was no error.
    PaddingSets or gets the amount of padding around the Barcode.
    PixelsPerMillimeterSets or gets Pixels per millimetres. (See remarks)
    QuietZoneIncludedInPaddingSets or gets if quiet zone required by given Barcode standard should be included in the set padding or added to the quiet zone.
    ScaleFactorSets or gets scale factor of the generated Barcode (for retina and other high Resolution devices).
    UseHeightRatioConfigures if the HeightRatio property should be used or not.


    GenerateToSVGTextGenerates Barcode from UInt64 value, returning it as String that contains formatting for SVG vector image.
    GenerateToSVGTextGenerates Barcode from Text value, returning it as String that contains formatting for SVG vector image.
    GenerateToiOSBitmapGenerates Barcode from Text value, returning it as iOSBitmap object.
    GenerateToiOSBitmapGenerates Barcode from UInt64 value, returning it as iOSBitmap object.


    BarcodeTypeA enum that represents selection of Barcode standards.
    ErrorCodeTypeA enum that represents error codes for the BarcodeGenerator class.


    EAN13 Barcode

    EAN8 Barcode

    Code128 Barcode

    Supported Platforms:

  • iOS

    Unsupported 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