Package com.adobe.xfa.pmp.qrcodepmp
Class QRCodeEncoder
- java.lang.Object
 - 
- com.adobe.xfa.pmp.qrcodepmp.QRCodeEncoder
 
 
- 
- All Implemented Interfaces:
 BarcodeEncoder
public class QRCodeEncoder extends java.lang.Object implements BarcodeEncoder
Ported from QRCodeEncoder.cpp 
- 
- 
Constructor Summary
Constructors Constructor Description QRCodeEncoder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImageencode(char[] message, BarcodeGenerationParams pmpParams)Encode the message into a QR Code symbol. 
 - 
 
- 
- 
Method Detail
- 
encode
public java.awt.image.BufferedImage encode(char[] message, BarcodeGenerationParams pmpParams) throws QRCodeEncoderExceptionEncode the message into a QR Code 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. ECC Type: int32 Required: no. Default: 4. Range: 3 (H), 2 (Q), 1 (M), 0 (L) Description: The ECC level to use in the barcode. 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:
 encodein interfaceBarcodeEncoder- Parameters:
 message- message to be encoded in barcodepmpParams- barcode params- Returns:
 - barcode image
 - Throws:
 QRCodeEncoderException
 
 - 
 
 -