KEYA_FNC3
KEYA_FNC3 = 96
setStart(string $table)
Specifies the start code. Can be 'A', 'B', 'C', or null - Table A: Capitals + ASCII 0-31 + punct - Table B: Capitals + LowerCase + punct - Table C: Numbers
If null is specified, the table selection is automatically made. The default is null.
string | $table |
getFont() : \BCGFont
Gets the font.
getForegroundColor() : \BCGColor
Gets the foreground color of the barcode.
getBackgroundColor() : \BCGColor
Gets the background color of the barcode.
addLabel(\BCGLabel $label)
Adds the label to the drawing.
\BCGLabel | $label |
removeLabel(\BCGLabel $label)
Removes the label from the drawing.
\BCGLabel | $label |
drawText(resource $im, integer $x1, integer $y1, integer $x2, integer $y2)
Draws the text.
The coordinate passed are the positions of the barcode. $x1 and $y1 represent the top left corner. $x2 and $y2 represent the bottom right corner.
resource | $im | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 |
drawRectangle(resource $im, integer $x1, integer $y1, integer $x2, integer $y2, integer $color = self::COLOR_FG)
Draws an empty rectangle on the resource at a specific position with a determined color.
resource | $im | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $color |
drawFilledRectangle(resource $im, integer $x1, integer $y1, integer $x2, integer $y2, integer $color = self::COLOR_FG)
Draws a filled rectangle on the resource at a specific position with a determined color.
resource | $im | |
integer | $x1 | |
integer | $y1 | |
integer | $x2 | |
integer | $y2 | |
integer | $color |
createBinaryStream(string $text, string $seq) : array<mixed,string[]>
Depending on the sequence $seq given (returned from getSequence()), this method will return the code stream in an array. Each char will be a string of bit based on the Code 128.
Each letter from the sequence represents bits.
0 to 2 are latches A to B are Shift + Letter . is a char in the current encoding
string | $text | |
string | $seq |
encodeChar(array<mixed,integer> $data, integer $encoding, string $seq, string $text, integer $i, integer $counter, array<mixed,integer> $indcheck)
Encodes characters, base on its encoding and sequence
array<mixed,integer> | $data | |
integer | $encoding | |
string | $seq | |
string | $text | |
integer | $i | |
integer | $counter | |
array<mixed,integer> | $indcheck |
getBiggestLabels(boolean $reversed = false) : array<mixed,\BCGLabel>
Returning the biggest label widths for LEFT/RIGHT and heights for TOP/BOTTOM.
boolean | $reversed |