Leadtools.Barcode Namespace > BarcodeWriter Class : WriteBarcode Method |
public void WriteBarcode( RasterImage image, BarcodeData data, BarcodeWriteOptions options )
'Declaration Public Sub WriteBarcode( _ ByVal image As RasterImage, _ ByVal data As BarcodeData, _ ByVal options As BarcodeWriteOptions _ )
'Usage Dim instance As BarcodeWriter Dim image As RasterImage Dim data As BarcodeData Dim options As BarcodeWriteOptions instance.WriteBarcode(image, data, options)
public void WriteBarcode( RasterImage image, BarcodeData data, BarcodeWriteOptions options )
ObjectiveC Syntax
public: void WriteBarcode( RasterImage^ image, BarcodeData^ data, BarcodeWriteOptions^ options )
Writes a barcode to an image. The data object must contain the data for the barcode (or one of its derived classes). The following members are used by this method:
BarcodeData.Symbology: Specifies the symbology (or type) of the barcode to write. Must not be set to BarcodeSymbology.Unknown.
The raw data stored in BarcodeData.GetData: Must contain the raw data for the symbology in a format and size supported by the barcode standard.
BarcodeData.Bounds: Must contain barcode location (and optionally, its size). Refer to Writing Barcodes - Bounds and XModule for more information.
If options is null (Nothing in Visual Basic), then this method will use the default write options associated with the symbology by calling GetDefaultOptions(data.Symbology). If options is not null (Nothing in Visual Basic), then this method will use these write options instead of the default ones. The default will use options stored in this BarcodeWriter and will not be overridden by this method at any time.
Note that this method will not check if the options passed in options are associated with symbology stored in BarcodeData.Symbology. If these two do not match, then the default options are used instead.
For an example, refer to BarcodeWriter.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
BarcodeWriter Class
BarcodeWriter Members
BarcodeWriter Class
BarcodeSymbology Enumeration
BarcodeData Class
Programming with LEADTOOLS Barcode
Supported Barcode Symbologies
Unlocking Barcode Support
Writing Barcodes Tutorial
UPC / EAN Barcodes in LEADTOOLS
2 of 5 Barcodes Barcodes in LEADTOOLS
GS1 DataBar / RSS-14 Barcodes in LEADTOOLS
Code 128 Barcodes in LEADTOOLS
USPS and 4-State Barcodes in LEADTOOLS
MSI Barcodes (Pulse Width Modulated) in LEADTOOLS
Codabar Barcodes in LEADTOOLS
Miscellaneous Barcodes in LEADTOOLS
Datamatrix Barcodes in LEADTOOLS
PDF417 and MicroPDF417 Barcodes in LEADTOOLS
MicroPDF417 Barcodes in LEADTOOLS
QR Barcodes in LEADTOOLS
Writing Barcodes - Bounds and XModule