Package org.enkatsu.zxingp5
Class QRWriter
java.lang.Object
org.enkatsu.zxingp5.QRWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VERSION
Library version- See Also:
-
-
Constructor Details
-
QRWriter
public QRWriter(processing.core.PApplet app) - Parameters:
app- A PApplet representing the user sketch, i.e "this"
-
-
Method Details
-
getImage
public processing.core.PImage getImage(int width, int height) - Parameters:
width- intheight- int- Returns:
- Encoded QR code image.
-
getQRCode
- Parameters:
width- intheight- int- Returns:
- Encoded QR code instance.
-
encode
- Parameters:
src- Text to encode into QR codeformat- Barcode format, i.e "BarcodeFormat.QR_CODE"width- intheight- int- Returns:
- Bits from encoded QR code.
-
encode
- Parameters:
src- Text to encode into QR codewidth- intheight- int- Returns:
- Bits from encoded QR code.
-
encode
- Parameters:
src- Text to encode into QR codeversion- QR code version- Returns:
- Bits from encoded QR code.
-
getBitMatrix
public com.google.zxing.common.BitMatrix getBitMatrix()- Returns:
- BitMatrix
-
toString
-
version
return the version of the Library.- Returns:
- String
-