YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.QrCodes Class Reference

The QR code of a pairing token (issue #325): the Sendspin specification renders a token as a QR code that carries the token verbatim, with no URI scheme. More...

Collaboration diagram for de.yaacc.sendspin.QrCodes:
Collaboration graph

Static Public Member Functions

static boolean[][] modules (String text)
 The dark modules of the code of the text, without the quiet zone.
 
static int[] pixels (boolean[][] modules, int scale)
 Pixels of the code with its quiet zone: white 0xFFFFFFFF and black 0xFF000000, size by size where size = (modules + 2 * QUIET_ZONE) * scale.
 
static int sizeOf (int modules, int scale)
 The side in pixels of pixels for a code of this many modules.
 

Static Public Attributes

static final int QUIET_ZONE = 4
 The modules around the code that a scanner needs as a quiet zone, as the QR standard says.
 

Detailed Description

The QR code of a pairing token (issue #325): the Sendspin specification renders a token as a QR code that carries the token verbatim, with no URI scheme.

The token is upper case letters and digits, so the code is small (alphanumeric mode).

Member Function Documentation

◆ modules()

static boolean[][] de.yaacc.sendspin.QrCodes.modules ( String text)
static

The dark modules of the code of the text, without the quiet zone.

Returns
[row][column], true for a dark module
Exceptions
IllegalArgumentExceptionif the text does not fit into a code

Referenced by de.yaacc.sendspin.QrCodes.pixels(), and de.yaacc.sendspin.QrCodes.sizeOf().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: