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: 21.9.0
public sealed class BarcodeGenerator : Component

The BarcodeGenerator type exposes the following members.

Public methodBarcodeGenerator(BaseEncodeType)
Creates an instance of BarcodeGenerator.
Public methodBarcodeGenerator(BaseEncodeType, String)
Creates an instance of BarcodeGenerator.
Public propertyBarcodeType
Barcode symbology type.
Public propertyCodeText
Text to be encoded.
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyParameters
Generation parameters.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Public methodDrawWpf
Draws barcode image on WPF canvas.
Public methodEquals
Determines whether the specified object is equal to the current object.
(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
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberImportFromXml
Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(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
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
This sample shows how to create and save a barcode image.
  using(var generator = new BarcodeGenerator(EncodeTypes.Code128))
      generator.CodeText = "123ABC";
See Also