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: 19.10.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
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.)
Methods
  NameDescription
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 methodCode exampleGenerateBarCodeImage
Generate the barcode image under current settings.
Public methodGetHashCode
Serves as a hash function for a particular type.
(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 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.)
Events
  NameDescription
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(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