__construct(Version $version, EccLevel $eccLevel) |
- |
|
initFunctionalPatterns() |
self |
shortcut to initialize the functional patterns |
getMatrix() |
array |
the internal matrix representation as a 2 dimensional array |
getVersion() |
Version\|null |
the current QR Code version instance |
getEccLevel() |
EccLevel\|null |
the current ECC level instance |
getMaskPattern() |
MaskPattern\|null |
the used mask pattern instance |
getSize() |
int |
the absoulute size of the matrix, including quiet zone (if set). $version * 4 + 17 + 2 * $quietzone |
get(int $x, int $y) |
int |
returns the value of the module |
set(int $x, int $y, bool $value, int $M_TYPE) |
self |
sets the $M_TYPE value for the module |
setArea(int $startX, int $startY, int $width, int $height, bool $value, int $M_TYPE) |
self |
Fills an area of $width * $height, from the given starting point $startX, $startY (top left) with $value for $M_TYPE |
checkType(int $x, int $y, int $M_TYPE) |
bool |
Checks whether a module is of the given $M_TYPE |
checkTypeIn(int $x, int $y, array $M_TYPES) |
bool |
Checks whether the module at ($x, $y) is in the given array of $M_TYPES, returns true if a match is found, otherwise false |
check(int $x, int $y) |
bool |
checks whether a module is true (dark) or false (light) |
checkNeighbours(int $x, int $y, int $M_TYPE = null) |
int |
Checks the status neighbouring modules of the given module at ($x, $y) and returns a bitmask with the results. |
setDarkModule() |
self |
|
setFinderPattern() |
self |
|
setSeparators() |
self |
|
setAlignmentPattern() |
self |
|
setTimingPattern() |
self |
|
setVersionNumber() |
self |
|
setFormatInfo(MaskPattern $maskPattern = null) |
self |
|
setQuietZone(int $quietZoneSize) |
self |
Draws the "quiet zone" of $quietZoneSize around the matrix |
rotate90() |
self |
Rotates the matrix by 90 degrees clock wise |
setLogoSpace(int $width, int $height = null, int $startX = null, int $startY = null) |
self |
Clears a space of $width * $height in order to add a logo or text. |
writeCodewords(BitBuffer $bitBuffer) |
self |
Maps the interleaved binary data on the matrix |
mask(MaskPattern $maskPattern) |
self |
Applies/reverses the mask pattern |