LEADTOOLS Barcode (Leadtools.Barcode assembly)
LEAD Technologies, Inc

WriteBarcode Method








The Leadtools.RasterImage that specifies the image to write the barcode to. Must not be null (Nothing in Visual Basic).
The barcode data. Must not be null (Nothing in Visual Basic).
Write options. Could be null (Nothing in Visual Basic).
Writes a barcode to an image. .NET support Silverlight support
Syntax
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
 function Leadtools.Barcode.BarcodeWriter.WriteBarcode( 
   image ,
   data ,
   options 
)
public:
void WriteBarcode( 
   RasterImage^ image,
   BarcodeData^ data,
   BarcodeWriteOptions^ options
) 

Parameters

image
The Leadtools.RasterImage that specifies the image to write the barcode to. Must not be null (Nothing in Visual Basic).
data
The barcode data. Must not be null (Nothing in Visual Basic).
options
Write options. Could be null (Nothing in Visual Basic).
Remarks

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:

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.

Example

For an example, refer to BarcodeWriter.

Requirements

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

See Also

Reference

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

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Barcode requires a Barcode Module license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features