TOP_LEFT
TOP_LEFT = 'top-left'
Top left of the canvas.
Hold and computes position of objects added to canvas.
getXY(integer $canvasWidth, integer $canvasHeight, integer $imageWidth, integer $imageHeight) : array
Translate the textual position + offsets into x,y values.
integer | $canvasWidth | Width of canvas. |
integer | $canvasHeight | Height of canvas. |
integer | $imageWidth | Width of image/object added. |
integer | $imageHeight | Height of image/object added. |
When invalid position.
Array of X and Y coordinates: array($x, $y).