|
imageftbbox(PHP 4 >= 4.0.7, PHP 5) imageftbbox — Give the bounding box of a text using fonts via freetype2 Описание
array imageftbbox
( float $size
, float $angle
, string $fontfile
, string $text
[, array $extrainfo
] )
This function calculates and returns the bounding box in pixels for a FreeType text. Список параметров
Возвращаемые значенияimageftbbox() returns an array with 8 elements representing four points making the bounding box of the text:
The points are relative to the text regardless of the angle, so "upper left" means in the top left-hand corner seeing the text horizontally. Примеры
Пример #1 imageftbbox() example
<?php Примечания
Список изменений
|
|||||||||||||||||||||||||||