Translate the textual position + offsets into x,y values.
public getXY ( integer $canvasWidth, integer $canvasHeight, integer $imageWidth, integer $imageHeight ) : array | ||
$canvasWidth | integer | Width of canvas. |
$canvasHeight | integer | Height of canvas. |
$imageWidth | integer | Width of image/object added. |
$imageHeight | integer | Height of image/object added. |
Résultat | array | Array of X and Y coordinates: array($x, $y). |