classes-Com-Tecnick-Barcode-Type-Square-Datamatrix-Steps

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.

Steps extends Modes

in package

AbstractYes

Com\Tecnick\Barcode\Type\Square\Datamatrix\Steps

Steps methods for Datamatrix Barcode type class

Tags
since
2015-02-21
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2015-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

Table of Contents

Properties

$last_enc  : int
Store last used encoding for data codewords.
$shape  : string
Datamatrix shape key (S=square, R=rectangular)

Methods

get253StateCodeword()  : int
Return the 253-state codeword
getPlacementMap()  : array<int, int>
Build a placement map.
lookAheadTest()  : int
The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S).

Properties

$last_enc

Store last used encoding for data codewords.

public int $last_enc

$shape

Datamatrix shape key (S=square, R=rectangular)

public string $shape

Methods

get253StateCodeword()

Return the 253-state codeword

public get253StateCodeword(int $cdwpad, int $cdwpos) : int
Parameters
$cdwpad : int

Pad codeword.

$cdwpos : int

Number of data codewords from the beginning of encoded data.

Return values
int

getPlacementMap()

Build a placement map.

public getPlacementMap(int $nrow, int $ncol) : array<int, int>

(Annex F - ECC 200 symbol character placement)

Parameters
$nrow : int

Number of rows.

$ncol : int

Number of columns.

Return values
array<int, int>

lookAheadTest()

The look-ahead test scans the data to be encoded to find the best mode (Annex P - steps from J to S).

public lookAheadTest(string $data, int $pos, int $mode) : int
Parameters
$data : string

Data to encode

$pos : int

Current position

$mode : int

Current encoding mode

Return values
int

encoding mode

On this page
 

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