QRMatrix
The full phpDocumentor API documentation can be found at chillerlan.github.io/php-qrcode.
Methods
method |
return |
description |
|---|---|---|
|
- |
|
|
|
shortcut to initialize the functional patterns |
|
|
the internal matrix representation as a 2 dimensional array |
|
|
the current QR Code version instance |
|
|
the current ECC level instance |
|
|
the used mask pattern instance |
|
|
the absoulute size of the matrix, including quiet zone (if set). |
|
|
returns the value of the module |
|
|
sets the |
|
|
Fills an area of $width * $height, from the given starting point $startX, $startY (top left) with $value for $M_TYPE |
|
|
Checks whether a module is of the given $M_TYPE |
|
|
Checks whether the module at ($x, $y) is in the given array of $M_TYPES, returns true if a match is found, otherwise false |
|
|
checks whether a module is true (dark) or false (light) |
|
|
Checks the status neighbouring modules of the given module at ($x, $y) and returns a bitmask with the results. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Draws the “quiet zone” of $quietZoneSize around the matrix |
|
|
Rotates the matrix by 90 degrees clock wise |
|
|
Clears a space of $width * $height in order to add a logo or text. |
|
|
Maps the interleaved binary data on the matrix |
|
|
Applies/reverses the mask pattern |
Deprecated methods
method |
since |
replacement |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Constants
The _DARK and _LIGHT postfixed constans exist purely for convenience - their value is the same as
QRMatrix::M_XXX | QRMatrix::IS_DARK and QRMatrix::M_XXX ^ QRMatrix::IS_DARK respectively,
see QROutputInterface.
name |
description |
|---|---|
|
sets the “dark” flag for the given value: |
|
module not set |
|
convenience (reversed reflectance) |
|
once per matrix at |
|
the actual encoded data |
|
convenience |
|
the 7x7 finder patterns |
|
convenience |
|
convenience (reversed reflectance) |
|
the inner 3x3 block of the finder pattern |
|
separator lines along the finder patterns |
|
convenience |
|
the 5x5 alignment patterns |
|
convenience |
|
the timing pattern lines |
|
convenience |
|
format information pattern |
|
convenience |
|
version information pattern |
|
convenience |
|
margin around the QR Code |
|
convenience |
|
space for a logo image (not used yet) |
|
convenience |
|
test value |
|
convenience |