XFA4J

com.adobe.xfa.pmp.datamatrixpmp
Class DataMatrixEncoder

java.lang.Object
  extended by com.adobe.xfa.pmp.datamatrixpmp.DataMatrixEncoder
All Implemented Interfaces:
BarcodeEncoder

public class DataMatrixEncoder
extends java.lang.Object
implements BarcodeEncoder

Ported from DataMatrixEncoder.cpp


Constructor Summary
DataMatrixEncoder()
           
 
Method Summary
 java.awt.image.BufferedImage encode(char[] message, BarcodeGenerationParams pmpParams)
          Encode the message into a DataMatrix symbol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMatrixEncoder

public DataMatrixEncoder()
Method Detail

encode

public java.awt.image.BufferedImage encode(char[] message,
                                           BarcodeGenerationParams pmpParams)
                                    throws DataMatrixEncoderException
Encode the message into a DataMatrix symbol. param message - The byte message to be placed in the symbol. param parameters - The encoding parameters. param numberOfParameters - The number of encoding parameters. The encoding parameters are: Resolution Type: int32. Required: yes. Range: must be greater than 0. Description: The DPI resolution. This is used along with the XSymWidth and XSymHeight parameters to calculate the size of the output image in pixels. Width Type: double. Required: yes. Range: must be greater than 0.0. Description: The width of the barcode image in inches. Height Type: double. Required: yes. Range: must be greater than 0.0. Description: The height of the barcode image in inches. XSymWidth Type: int. Required: no. Default: 4. Range: must be greater than 0. Description: The size of a module in pixels.

Specified by:
encode in interface BarcodeEncoder
Parameters:
message - message to be encoded in barcode
pmpParams - barcode params
Returns:
barcode image
Throws:
DataMatrixEncoderException

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.