Barcode .Net Class Library

SaveImage Method

Applies To: Barcode | BarcodeControl | BarcodeImage

Generates a barcode image and saves it to a file.

[Visual Basic]
Public Sub SaveImage( _
   ByVal imageFormat As ImageFormat, _
   ByVal barcodeWidth As Integer, _
   ByVal barcodeHeight As Integer, _
   ByVal isBarWidth As Boolean, _
   ByVal transparent As Boolean, _
   ByVal textOnly As String, _
   ByVal pathFile As String _
)

[C#]
public void SaveImage(
   ImageFormat imageFormat, 
   int barcodeWidth, 
   int barcodeHeight, 
   bool isBarWidth, 
   bool transparent, 
   string textOnly, 
   string pathFile
);

Parameters

imageFormat
A System.Drawing.Imaging.ImageFormat enumeration indicating the format the image is to be generated in.
barcodeWidth
Specifies the desired barcode width in pixels; depending on the Orientation, this may either be the barcode image width or height. Also, this is either the entire barcode width or the width of the thinnest barcode bar, depending on the isBarWidth argument.
barcodeHeight
Specifies the desired barcode height in pixels; depending on the Orientation, this may either be the barcode image height or width.
isBarWidth
If this is false, barcodeWidth is the width of the entire barcode; otherwise, it's the width of the thinnest barcode bar.
transparent
Specifies whether the barcode image generated is transparent. This is applicable only if the image format supports transparency (for example, GIF).
textOnly
If this argument is not null, the string it points to will be drawn, in place of a barcode image.
pathFile
The full path name of the file the generated image is to be saved to.

See Also

MakeImage


© 2002 Bokai Corporation. All rights reserved.