Writes a barcode to an image.
Public Sub WriteBarcode( _
ByVal image As RasterImage, _
ByVal data As BarcodeData, _
ByVal options As BarcodeWriteOptions _
The RasterImage that specifies the image to write the barcode to. Must not be null (Nothing in VB).
The barcode data. Must not be null (Nothing in VB).
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:
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.
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.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries