POSITION_TOP
POSITION_TOP = 0
__construct(string $text = '', \BCGFont $font = null, integer $position = self::POSITION_BOTTOM, integer $alignment = self::ALIGN_CENTER)
Constructor.
string | $text | |
\BCGFont | $font | |
integer | $position | |
integer | $alignment |
getFont() : \BCGFont
Gets the font.
setFont(\BCGFont $font)
Sets the font.
\BCGFont | $font |
getBackgroundColor() : \BCGColor
Gets the background color in case of rotation.
setBackgroundColor(\BCGColor $backgroundColor)
Sets the background color in case of rotation.
\BCGColor | $backgroundColor |
getForegroundColor() : \BCGColor
Gets the foreground color.
setForegroundColor(\BCGColor $foregroundColor)
Sets the foreground color.
\BCGColor | $foregroundColor |
draw(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 |