Estimate
in package
AbstractYes
Com\Tecnick\Barcode\Type\Square\QrCode\Estimate
Tags
Table of Contents
Properties
- $version : int
- QR code version.
Methods
- estimateBitsMode8() : int
- estimateBitsMode8
- estimateBitsModeAn() : int
- estimateBitsModeAn
- estimateBitsModeKanji() : int
- estimateBitsModeKanji
- estimateBitsModeNum() : int
- estimateBitsModeNum
- estimateVersion() : int
- Estimate version
- getLengthIndicator() : int
- Return the size of length indicator for the mode and version
Properties
$version
QR code version.
public int $version = 0
The Size of QRcode is defined as version. Version is an integer value from 1 to 40. Version 1 is 2121 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177177 matrix.
Methods
estimateBitsMode8()
estimateBitsMode8
public estimateBitsMode8(int $size)
: int
Parameters
- $size : int
Return values
int —number of bits
estimateBitsModeAn()
estimateBitsModeAn
public estimateBitsModeAn(int $size)
: int
Parameters
- $size : int
Return values
int —number of bits
estimateBitsModeKanji()
estimateBitsModeKanji
public estimateBitsModeKanji(int $size)
: int
Parameters
- $size : int
Return values
int —number of bits
estimateBitsModeNum()
estimateBitsModeNum
public estimateBitsModeNum(int $size)
: int
Parameters
- $size : int
Return values
int —number of bits
estimateVersion()
Estimate version
public estimateVersion(array<int,
Item> $items,
int $level)
: int
Parameters
- $items : array<int, Item>
-
Items
- $level : int
-
Error correction level
Return values
int —version
getLengthIndicator()
Return the size of length indicator for the mode and version
public getLengthIndicator(int $mode,
int $version)
: int
Parameters
- $mode : int
-
Encoding mode
- $version : int
-
Version
Return values
int —the size of the appropriate length indicator (bits).