Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\QrCode
class Geometry
Source: src/Type/Square/QrCode/Geometry.php:37
Function patterns of the QrCode Barcode type class, section 7.3 of ISO/IEC 18004: the finder patterns and their separators, the timing patterns, the alignment patterns, and the modules reserved for the format and the version information.
Methods
__construct()
public __construct(int $version)
Parameters:
$version(int): Symbol version, from 1 to 40.
Source: src/Type/Square/QrCode/Geometry.php:55
getAlignmentCentres()
Returns the centre of every alignment pattern of the version: every pair of the coordinates of Table E.1 of ISO/IEC 18004, less the three pairs the finder patterns cover.
public getAlignmentCentres(): array<int,array{int, int}>
Returns: array<int,array{int, int}>
Source: src/Type/Square/QrCode/Geometry.php:77
getSize()
Returns the symbol size in modules.
public getSize(): int
Returns: int
Source: src/Type/Square/QrCode/Geometry.php:65
isDarkModule()
Returns whether the module is a dark module of a function pattern. Every module of the separators, of the format information and of the version information is light at this stage.
public isDarkModule(int $row, int $col): bool
Parameters:
$row(int): Row of the module.$col(int): Column of the module.
Returns: bool
Source: src/Type/Square/QrCode/Geometry.php:133
isFunctionModule()
Returns whether the module belongs to a function pattern, to the format information or to the version information, and so cannot carry data.
public isFunctionModule(int $row, int $col): bool
Parameters:
$row(int): Row of the module.$col(int): Column of the module.
Returns: bool