Property | Type | Description | |
---|---|---|---|
$_default |
Method | Description | |
---|---|---|
render ( mixed $image, string $text, string $fFile, array $params = [] ) | Add text to an image |
Method | Description | |
---|---|---|
_getColor ( mixed $image, string | array $colors ) : array | Determine text color | |
_getStrokeX ( string $fontSize, integer $angle, string $fontFile, array $letters, string $charKey, integer $strokeSpacing, integer $textX ) : integer | Get X offset for stroke rendering mode | |
_getTextboxSize ( string $fontSize, integer $angle, string $fontFile, string $text ) : array | Determine textbox size | |
_render ( mixed $image, string $text, array $font, array $coords ) : array | Compact args for imagettftext() | |
_renderStroke ( mixed $image, string $text, array $font, array $coords, array $stroke ) : array | Same as imagettftext(), but allows for a stroke color and size |
protected static _renderStroke ( mixed $image, string $text, array $font, array $coords, array $stroke ) : array | ||
$image | mixed | A GD image object |
$text | string | The text to output |
$font | array | [$fontfile, $fontsize, $color, $angle] |
$coords | array | [X,Y] Coordinate of the starting position |
$stroke | array | [$strokeSize, $strokeColor] |
return | array |