\BarcodeBakery\CommonBCGFontPhp

Summary

Methods
Properties
Constants
__construct()
getText()
setText()
getRotationAngle()
setRotationAngle()
getBackgroundColor()
setBackgroundColor()
getForegroundColor()
setForegroundColor()
getDimension()
draw()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$font
$text
$rotationAngle
$backgroundColor
$foregroundColor
N/A

Properties

$font

$font

$text

$text

$rotationAngle

$rotationAngle

$backgroundColor

$backgroundColor

$foregroundColor

$foregroundColor

Methods

__construct()

__construct(int  $font) : mixed

Constructor.

Parameters

int $font

Returns

mixed —

getText()

getText() : string

Gets the text associated to the font.

Returns

string —

setText()

setText(mixed  $text) : mixed

Sets the text associated to the font.

Parameters

mixed $text

Returns

mixed —

getRotationAngle()

getRotationAngle() : int

Gets the rotation in degree.

Returns

int —

setRotationAngle()

setRotationAngle(mixed  $rotationAngle) : mixed

Sets the rotation in degree.

Parameters

mixed $rotationAngle

Returns

mixed —

getBackgroundColor()

getBackgroundColor() : \BarcodeBakery\Common\BCGColor

Gets the background color.

Returns

\BarcodeBakery\Common\BCGColor —

setBackgroundColor()

setBackgroundColor(\BarcodeBakery\Common\BCGColor  $backgroundColor) : mixed

Sets the background color.

Parameters

\BarcodeBakery\Common\BCGColor $backgroundColor

Returns

mixed —

getForegroundColor()

getForegroundColor() : \BarcodeBakery\Common\BCGColor

Gets the foreground color.

Returns

\BarcodeBakery\Common\BCGColor —

setForegroundColor()

setForegroundColor(\BarcodeBakery\Common\BCGColor  $foregroundColor) : mixed

Sets the foreground color.

Parameters

\BarcodeBakery\Common\BCGColor $foregroundColor

Returns

mixed —

getDimension()

getDimension() : int[]

Returns the width and height that the text takes to be written.

Returns

int[] —

draw()

draw(resource  $im, int  $x, int  $y) : mixed

Draws the text on the image at a specific position.

$x and $y represent the left bottom corner.

Parameters

resource $im
int $x
int $y

Returns

mixed —