classes-Com-Tecnick-Barcode-Type-Square-QrCode-Init

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Init extends Mask

in package

AbstractYes

Com\Tecnick\Barcode\Type\Square\QrCode\Init

Tags
since
2015-02-21
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2010-2024 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-barcode
phpstan-type

RSItem array{ 'alpha_to': array<int, int>, 'fcr': int, 'genpoly': array<int, int>, 'gfpoly': int, 'index_of': array<int, int>, 'iprim': int, 'mm': int, 'nn': int, 'nroots': int, 'pad': int, 'prim': int, }

phpstan-type

RSblock array{ 'data': array<int, int>, 'dataLength': int, 'ecc': array<int, int>, 'eccLength': int, }

Table of Contents

Properties

$version  : int
QR code version.

Methods

__construct()  : mixed
Initialize

Properties

$version

QR code version.

public int $version

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

__construct()

Initialize

public __construct(int $version, int $level[, int $qr_find_from_random = -1 ][, bool $qr_find_best_mask = true ][, int $qr_default_mask = 2 ]) : mixed
Parameters
$version : int

Code version

$level : int

Error Correction Level

$qr_find_from_random : int = -1

If negative, checks all masks available, otherwise the value indicates the number of masks to be checked, mask ids are random

$qr_find_best_mask : bool = true

If true, estimates best mask (slow)

$qr_default_mask : int = 2

Default mask used when $fbm is false

On this page
 

© 2004-2024 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy