com.cage.zxing4p3
Class ZXING4P

java.lang.Object
  extended by com.cage.zxing4p3.ZXING4P

public class ZXING4P
extends java.lang.Object

This library was created to integrate the open source ZXING barcode library with Processing.

By Rolf van Gelder :: http://rvg.cage.nl/ :: http://cagewebdev.com/ :: info@cagewebdev.com

Library page: http://cagewebdev.com/zxing4processing-processing-library/

v3.2 :: 07/31/2016
- Removed deprecated method: 'decodeWeb()'
- Added a new method: 'version()'
- Several minor changes

v3.1 :: 07/21/2016
- Renamed the library to zxing4p3, a Processing 2.x/3.x compatible version
- New method: getPositionMarkers()

NOTE: Compiled with Java 1.6.0_45 (because of Processing 2.x compatibility)


Constructor Summary
ZXING4P()
          Constructor
 
Method Summary
 java.lang.String decodeImage(boolean tryHarder, processing.core.PImage img)
          Decode the QRCode from a PImage
 processing.core.PImage generateQRCode(java.lang.String content, int width, int height)
          Generates a QRCode PImage from a string
 processing.core.PVector[] getPositionMarkers()
          Returns a PVector array with the position markers for the latest detected QRCode
 void version()
          Displays version information of this library in the console
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZXING4P

public ZXING4P()
Constructor

Method Detail

decodeImage

public java.lang.String decodeImage(boolean tryHarder,
                                    processing.core.PImage img)
Decode the QRCode from a PImage

Parameters:
tryHarder - if set to true, it tells the software to spend a little more time trying to decode the image
img - PImage containing the image to be examinded
Returns:
String with the found QRCode (empty if nothing found)

generateQRCode

public processing.core.PImage generateQRCode(java.lang.String content,
                                             int width,
                                             int height)
Generates a QRCode PImage from a string

Parameters:
content - string to encode
width - width of the PImage that will be returned
height - height of the PImage that will be returned
Returns:
PImage with the QRCode image

getPositionMarkers

public processing.core.PVector[] getPositionMarkers()
Returns a PVector array with the position markers for the latest detected QRCode

Returns:
PVector with the position markers for the latest detected QRCode

version

public void version()
Displays version information of this library in the console