Свойство | Тип | Описание | |
---|---|---|---|
$_default |
Метод | Описание | |
---|---|---|
render ( mixed $image, string $text, string $fFile, array $params = [] ) | Add text to an image |
Метод | Описание | |
---|---|---|
_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 _getStrokeX ( string $fontSize, integer $angle, string $fontFile, array $letters, string $charKey, integer $strokeSpacing, integer $textX ) : integer | ||
$fontSize | string | |
$angle | integer | |
$fontFile | string | |
$letters | array | |
$charKey | string | |
$strokeSpacing | integer | |
$textX | integer | |
Результат | integer |
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] |
Результат | array |