←Select platform

WriteBarcode Method

Summary

Writes a barcode to an image.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
Public Sub WriteBarcode( _ 
   ByVal image As Leadtools.RasterImage, _ 
   ByVal data As Leadtools.Barcode.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 
) 
             
 function Leadtools.Barcode.BarcodeWriter.WriteBarcode(  
   image , 
   data , 
   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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Barcode Assembly
Click or drag to resize