Created
December 13, 2013 05:12
-
-
Save trepmal/7940059 to your computer and use it in GitHub Desktop.
imageftbbox() returns an array with 8 elements representing four points making the bounding box of the text
http://www.php.net/manual/en/function.imageftbbox.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// attempting to understand imageftbbox()'s output | |
// Array | |
// ( | |
// [0] => -1 lower left corner, X position | |
// [1] => 6 lower left corner, Y position | |
// [2] => 115 lower right corner, X position | |
// [3] => 6 lower right corner, Y position | |
// [4] => 115 upper right corner, X position | |
// [5] => -21 upper right corner, Y position | |
// [6] => -1 upper left corner, X position | |
// [7] => -21 upper left corner, Y position | |
// ) | |
/* | |
|7 |5 | |
___|________________|___ | |
6 | | 4 | |
| | | |
| | | |
| | | |
| | | |
___|________________|___ | |
0 | | 2 | |
|1 |3 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment