Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Writer

The base class for all objects which encode/generate a barcode image.

author

dswitkin@google.com (Daniel Switkin)

Hierarchy

  • Writer

Implemented by

Index

Methods

Methods

encode

  • throws

    WriterException if contents cannot be encoded legally in a format

    Parameters

    • contents: string

      The contents to encode in the barcode

    • format: BarcodeFormat

      The barcode format to generate

    • width: number

      The preferred width in pixels

    • height: number

      The preferred height in pixels

    • hints: Map<EncodeHintType, any>

      Additional parameters to supply to the encoder

    Returns BitMatrix

    BitMatrix representing encoded barcode image

Generated using TypeDoc