Barcode .Net Class Library
MakeImage Method
Applies To: Barcode |
BarcodeControl |
BarcodeImage
Generates a barcode image and writes it to an output stream.
[Visual Basic]
Public Sub MakeImage( _
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 os As Stream _
)
[C#]
public void MakeImage(
ImageFormat imageFormat,
int barcodeWidth,
int barcodeHeight,
bool isBarWidth,
bool transparent,
string textOnly,
Stream os
);
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.
- os
- The System.IO.Stream object the generated image is to be written to.
Remarks
The os parameter may need to be a seekable output stream depending on the image format
used; for example, the PNG codec in .Net Framework V1.0 requires a seekable output stream.
When this does not fit you, you will need to use an intermediary memory stream.
See Also
SaveImage
© 2002 Bokai Corporation. All rights reserved.