Could you explain what exactly the imagettfbbox() return value means? The manual states :
imagettfbbox () returns an array with 8 elements representing four points that make the bounding box of the text successful, and FALSE is an error. [... Table of points here ...] Points refer to the text regardless of the angle, so "upper left" means that the horizontal text is displayed in the upper left corner.
But I found this not very clear. For example, the return value:
array(-1, 1, 61, 1, 61, -96, -1, -96)
means the following points:
(-1, -96) ------ (61, -96) | | | | | | | | | | | | (-1, 1) -------- (61, 1)
How should I interpret them?
Why are there negative values?
Misha moroshko
source share