Writes a barcode to an image.
public void WriteBarcode(
Leadtools.RasterImage image,
Leadtools.Barcode.BarcodeData data,
Leadtools.Barcode.BarcodeWriteOptions options
)
Public Sub WriteBarcode( _
ByVal image As Leadtools.RasterImage, _
ByVal data As Leadtools.Barcode.BarcodeData, _
ByVal options As Leadtools.Barcode.BarcodeWriteOptions _
)
public void WriteBarcode(
Leadtools.RasterImage image,
Leadtools.Barcode.BarcodeData data,
Leadtools.Barcode.BarcodeWriteOptions options
)
- (BOOL)writeBarcode:(LTRasterImage *)image
data:(LTBarcodeData *)data
options:(nullable LTBarcodeWriteOptions *)options
error:(NSError **)error
function Leadtools.Barcode.BarcodeWriter.WriteBarcode(
image ,
data ,
options
)
public:
void WriteBarcode(
Leadtools.RasterImage^ image,
Leadtools.Barcode.BarcodeData^ data,
Leadtools.Barcode.BarcodeWriteOptions^ options
)
image
The RasterImage that specifies the image to write the barcode to. Must not be null (Nothing in VB).
data
The barcode data. Must not be null (Nothing in VB).
options
Write options. Could be null (Nothing in VB).
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 VB), 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 VB), 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.
Programming with LEADTOOLS Barcode
UPC / EAN 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
Miscellaneous Barcodes in LEADTOOLS
Datamatrix Barcodes in LEADTOOLS
PDF417 and MicroPDF417 Barcodes in LEADTOOLS
Products |
Support |
Feedback: WriteBarcode Method - Leadtools.Barcode |
Introduction |
Help Version 19.0.2017.6.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.