Returns an Image object containing a QRCode barcode.
public static Image createQRCode(String data, double moduleSize, int rotation, int resolution, int version, int level, int mask, String imageFormat) |
Parameters
data
Specifies a string which will be encoded by QRCode barcode.
moduleSize
Specifies the size (width/height) in centimeters of a square-shaped module.
rotation
Specifies the orientation of the barcode, a valid value should be 0, 1, 2, or 3. Please refer to Orientation Constants
resolution
Specifies the resolution (DPI) of a device onto which a barcode will be rendered. The default value is 96 for computer screen.
version
Specifies the version of QRCode barcode, a valid value should be between 0 and 40. Please refer to Version Constants.
level
Specifies the level of error correction allowing recovery, a valid value should be between 0 and 3. Please refer to Level Constants
mask
Specifies the mask pattern for improving the readability, a valid value should be between 0 and 8. Please refer to Mask Constants
imageFormat
Specifies barcode image format, it can be "bmp", "jpg", or "png".