SaveImage Method
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WinForms. SDK TXBarcode.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Saves the barcode image.
Syntax
SaveImage(Stream, System.Drawing.Imaging.ImageFormat)
Saves the barcode image to the specified object of type System.IO.Stream.
public void SaveImage(Stream imageStream, System.Drawing.Imaging.ImageFormat format);Public Sub SaveImage(imageStream As Stream, format As System.Drawing.Imaging.ImageFormat)| Parameter | Description |
|---|---|
| imageStream | Specifies an object of type |
| format | Specifies the format used to save the image. |
SaveImage(string, System.Drawing.Imaging.ImageFormat)
Saves the barcode image to the specified file using the specified format.
public void SaveImage(string imageFileName, System.Drawing.Imaging.ImageFormat format);Public Sub SaveImage(imageFileName As String, format As System.Drawing.Imaging.ImageFormat)| Parameter | Description |
|---|---|
| imageFileName | Specifies a file the image is saved to. |
| format | Specifies the format used to save the image. |
Examples
The following example uses Save Image in a focused TXBarcode Control workflow. The created object is then available to the surrounding document workflow.
tXBarcodeControl.SaveImage(new System.IO.MemoryStream(), System.Drawing.Imaging.ImageFormat.Png);
Console.WriteLine("TXBarcode Control is ready for use.");tXBarcodeControl.SaveImage(New System.IO.MemoryStream(), System.Drawing.Imaging.ImageFormat.Png)
Console.WriteLine("TXBarcode Control is ready for use.")