←Select platform

WriteBarcode Method

Summary
Writes a barcode to an image.
Syntax
C#
VB
Objective-C
C++
Java
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 
) 

Parameters

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).

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 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.

Example

For an example, refer to BarcodeWriter.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.