public class DefaultQRCodeGenerator extends java.lang.Object implements QRCodeGenerator
| Constructor and Description |
|---|
DefaultQRCodeGenerator() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generatePNG(java.lang.String data,
int width,
int height)
Method to generate a PNG image QR code of the given text with the dimensions specified.
|
public byte[] generatePNG(java.lang.String data,
int width,
int height)
throws InternalErrorException
generatePNG in interface QRCodeGeneratordata - the text data to encode into a QR Codewidth - the width of the image.height - the height of the image.InternalErrorException - if internal problem occurred generating the image.