Inherits from NSObject
Conforms to BCKCoding
Declared in BCKCode.h

Overview

This is the base class for all barcode variants:

For rendering codes several options can be combined in an options dictionary:

  • BCKCodeDrawingBarScaleOption - Multiplier for the bar width (default: 1)
  • BCKCodeDrawingPrintCaptionOption - Whether the code caption should be printed (default: YES)
  • BCKCodeDrawingCaptionFontNameOption - Which font face name to use for the caption (default: ‘OCRB’ for EAN/UPC and ‘Helvetica’ otherwise)
  • BCKCodeDrawingCaptionFontPointSizeOption - Specifies a fixed value for the caption point size. Is usually calculated
  • BCKCodeDrawingMarkerBarsOverlapCaptionPercentOption - Percentage of the caption height covered by elongated marker bars (default: 1.0)
  • BCKCodeDrawingFillEmptyQuietZonesOption - Whether quiet zones should be filled with angle brackets (default: NO)
  • BCKCodeDrawingDebugOption - Whether caption areas should be tinted for debugging (default: NO)
  • BCKCodeDrawingShowCheckDigitsOption - Whether check digits are to be included in the printed caption (default: NO)
  • BCKCodeDrawingBackgroundColorOption - The background color to fill the drawing canvas with (default: none)
  • BCKCodeDrawingReduceBleedOption - Bars are drawn less wide to counteract bleeding on thermo printers (default: NO)

Tasks

Drawing Barcodes

Getting Information about Barcodes

Properties

content

The content string for the receiver that will be converted into the barcode.

@property (nonatomic, readonly) NSString *content

Declared In

BCKCode.h

Instance Methods

renderInContext:options:

Renders the barcode symbol into a graphics context.

- (void)renderInContext:(CGContextRef)context options:(NSDictionary *)options

Parameters

context

The graphics context to render into.

options

The rendering options.

Declared In

BCKCode.h

sizeWithRenderOptions:

Calculates the graphics context’s size using the provided rendering options.

- (CGSize)sizeWithRenderOptions:(NSDictionary *)options

Parameters

options

An NSDictionary containig the requested rendering options.

Return Value

The size required to fit the barcode’s rendered barcode symbol.

Declared In

BCKCode.h