BarcodeGenerator Class

BarcodeGenerator for backend barcode images generation.

supported symbologies: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost ... 2D: Aztec, DataMatrix, PDf417, QR code ...

Inheritance Hierarchy

Namespace:  Aspose.BarCode.Generation
Assembly:  Aspose.BarCode (in Aspose.BarCode.dll) Version: 20.3.0
Syntax
public sealed class BarcodeGenerator : Component

The BarcodeGenerator type exposes the following members.

Constructors
  NameDescription
Public methodBarcodeGenerator(BaseEncodeType)
Creates an instance of BarcodeGenerator.
Public methodBarcodeGenerator(BaseEncodeType, String)
Creates an instance of BarcodeGenerator.
Properties
  NameDescription
Public propertyBarcodeType
Barcode symbology type.
Public propertyCodeText
Text to be encoded.
Public propertyContainer (Inherited from Component.)
Public propertyParameters
Generation parameters.
Public propertySite (Inherited from Component.)
Methods
  NameDescription
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodDispose (Inherited from Component.)
Public methodDrawWpf
Draws barcode image on WPF canvas.
Public methodEquals (Inherited from Object.)
Public methodExportToXml
Exports BarCode properties to the xml-file specified
Public methodCode exampleGenerateBarCodeImage
Generate the barcode image under current settings.
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberImportFromXml
Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Public methodSave(String)
Save barcode image to specific file.
Public methodSave(Stream, BarCodeImageFormat)
Save barcode image to stream in specific format.
Public methodSave(String, BarCodeImageFormat)
Save barcode image to specific file in specific format.
Public methodToString (Inherited from Component.)
Events
  NameDescription
Public eventDisposed (Inherited from Component.)
Examples
This sample shows how to create and save a barcode image.
[C#]
  using(var generator = new BarcodeGenerator(EncodeTypes.Code128))
  {
      generator.CodeText = "123ABC";
      generator.Save("code128.png");
  }
See Also