
## BarcodeGenerator class

BarcodeGenerator for backend barcode images generation.

The BarcodeGenerator type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|BarcodeGenerator(type)|Initializes a new instance of the BarcodeGenerator class|
|BarcodeGenerator(type, code_text)|Initializes a new instance of the BarcodeGenerator class|
## Properties
| Name | Description |
| :- | :- |
|parameters|Generation parameters.|
|barcode_type|Barcode symbology type.|
|code_text|Text to be encoded.|
## Methods
| Name | Description |
| :- | :- |
|set_code_text(code_bytes)|Set codetext as sequence of bytes.|
|set_code_text(code_text, encoding)|  |
|set_code_text(code_text, encoding, insert_bom)|  |
|save(stream, format)|Save barcode image to stream in specific format.|
|save(filename, format)|Save barcode image to specific file in specific format.|
|save(filename)|Save barcode image to specific file in specific format.|
|export_to_xml(xml_file)|Exports BarCode properties to the xml-file specified|
|export_to_xml(xml)|Exports BarCode properties to the xml-stream specified|
|import_from_xml(xml_file)|Imports BarCode properties from the xml-file specified and creates BarcodeGenerator instance.|
|import_from_xml(xml)|Imports BarCode properties from the xml-stream specified and creates BarcodeGenerator instance.|
|generate_bar_code_image()|Generate the barcode image under current settings.|

### See Also

* namespace [aspose.barcode.generation](/barcode/python-net/aspose.barcode.generation/)
* assembly [Aspose.BarCode](/barcode/python-net/)

