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.

Class Mask


Extended by Com\Tecnick\Barcode\Type\Square\QrCode\Mask
Namespace: Com\Tecnick\Barcode\Type\Square\QrCode
Package: Barcode
Category: Library
Copyright: 2010-2016 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni
Since: 2015-02-21
Located at Type/Square/QrCode/Mask.php
Methods summary
# __construct( integer $version, integer $level, boolean $random_mask = false, boolean $best_mask = true, integer $default_mask = 2 )


protected array
# mask( integer $width, array $frame, integer $level )

Get the best mask

protected array
# makeMask( integer $width, array $frame, integer $maskNo, integer $level )

Make a mask

protected integer
# writeFormatInformation( integer $width, array & $frame, integer $maskNo, integer $level )

Write Format Information on the frame and returns the number of black bits

protected integer
# evaluateSymbol( integer $width, array $frame )

Evaluate Symbol

protected integer
# evaluateSymbolB( integer $ypos, integer $width, array $frameY, array $frameYM )

Evaluate Symbol

protected integer
# calcN1N3( integer $length )

Calc N1 N3

protected integer
# calcN1N3delta( integer $length, integer $idx )

Calc N1 N3 delta

Methods inherited from Com\Tecnick\Barcode\Type\Square\QrCode\MaskNum
generateMaskNo(), makeMaskNo(), mask0(), mask1(), mask2(), mask3(), mask4(), mask5(), mask6(), mask7()
Properties summary
protected integer $qr_find_from_random

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

# false
protected boolean $qr_find_best_mask

If true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code

# true
protected integer $qr_default_mask

Default mask used when $this->qr_find_best_mask === false

# 2
protected array $runLength

Run length

# array()
public integer $version

QR code 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.

# 0
protected integer $level

Error correction level

# 0
protected Com\Tecnick\Barcode\Type\Square\QrCode\Spec $spc

Spec class object


© 2004-2017 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy