Writes a barcode to an image.
public void WriteBarcode(
RasterImage image,
BarcodeData data,
BarcodeWriteOptions options
)
Public Sub WriteBarcode( _
ByVal image As RasterImage, _
ByVal data As BarcodeData, _
ByVal options As BarcodeWriteOptions _
)
- (BOOL)writeBarcode:(LTRasterImage *)image
data:(LTBarcodeData *)data
options:(nullable LTBarcodeWriteOptions *)options
error:(NSError **)error
public:
void WriteBarcode(
RasterImage^ image,
BarcodeData^ data,
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.
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
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document