Method | Description | |
---|---|---|
__construct ( string $position = 'center', integer $offsetX, integer $offsetY ) | Position constructor. | |
getOffsetX ( ) : integer | ||
getOffsetY ( ) : integer | ||
getText ( ) : string | ||
getXY ( integer $canvasWidth, integer $canvasHeight, integer $imageWidth, integer $imageHeight ) : array | 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. |
return | array | Array of X and Y coordinates: array($x, $y). |