Class ComplexBarcodeGenerator
Generates complex barcodes such as Swiss QR Bill.
Implements
Inherited Members
Namespace: DRIT.Barcode.Complex
Assembly: DRIT.Barcode.dll
Syntax
public class ComplexBarcodeGenerator : IDisposable
Constructors
ComplexBarcodeGenerator(SwissQRBill)
Initializes a new instance of the ComplexBarcodeGenerator class with a Swiss QR Bill.
Declaration
public ComplexBarcodeGenerator(SwissQRBill bill)
Parameters
| Type | Name | Description |
|---|---|---|
| SwissQRBill | bill | The Swiss QR Bill data. |
Properties
Bill
Gets the Swiss QR Bill data.
Declaration
public SwissQRBill Bill { get; }
Property Value
| Type | Description |
|---|---|
| SwissQRBill |
Parameters
Gets the barcode parameters.
Declaration
public BarcodeParameters Parameters { get; }
Property Value
| Type | Description |
|---|---|
| BarcodeParameters |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
GenerateBitmap()
Generates the Swiss QR Bill as a bitmap.
Declaration
public Bitmap GenerateBitmap()
Returns
| Type | Description |
|---|---|
| Bitmap | A bitmap containing the rendered Swiss QR code. |
Save(Stream, BarCodeImageFormat)
Saves the Swiss QR Bill to a stream in the specified format.
Declaration
public void Save(Stream stream, BarCodeImageFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The output stream. |
| BarCodeImageFormat | format | The image format. |
Save(string, BarCodeImageFormat)
Saves the Swiss QR Bill to a file in the specified format.
Declaration
public void Save(string filename, BarCodeImageFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The output file name. |
| BarCodeImageFormat | format | The image format. |