## BarcodeGenerator::Save(System::SharedPtr\<System::IO::Stream\>, BarCodeImageFormat) method


Save barcode image to stream in specific format.

```cpp
void Aspose::BarCode::Generation::BarcodeGenerator::Save(System::SharedPtr<System::IO::Stream> stream, BarCodeImageFormat format)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | System::SharedPtr\<System::IO::Stream\> | Output **System.IO.Stream**. |
| format | BarCodeImageFormat | Specifies the file format of the output image. |

## See Also

* Enum [BarCodeImageFormat](../../barcodeimageformat/)
* Class [BarcodeGenerator](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
## BarcodeGenerator::Save(System::String, BarCodeImageFormat) method


Save barcode image to specific file in specific format.

```cpp
void Aspose::BarCode::Generation::BarcodeGenerator::Save(System::String filename, BarCodeImageFormat format)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filename | System::String | Path to save to. |
| format | BarCodeImageFormat | Specifies the file format of the output image. |

## See Also

* Enum [BarCodeImageFormat](../../barcodeimageformat/)
* Class [BarcodeGenerator](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
## BarcodeGenerator::Save(System::String) method


Save barcode image to specific file.

```cpp
void Aspose::BarCode::Generation::BarcodeGenerator::Save(System::String filename)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filename | System::String | Path to save to. |

## See Also

* Class [BarcodeGenerator](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
