←Select platform

WriteBarcode Method

Summary

Writes a barcode to an image.

Syntax

C#
VB
Java
Objective-C
C++
Public Sub WriteBarcode( _ 
   ByVal image As RasterImage, _ 
   ByVal data As BarcodeData, _ 
   ByVal options As Leadtools.Barcode.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 20.0.2018.1.19
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly