$imagePositionBase
Control the base position for drawing images or objects. By default, the base position is topleft. This allows you to easily position elements relative to the top-left, center, or bottom-right of your image.
Usage
$imagePositionBase[Base]
Parameter:
Base: Specifies the base position. Must be one of the valid values listed below.
Base Values:
The following values are accepted for the Base parameter:
topleft: Top-left cornertop: Top-centertopright: Top-right cornercenterleft: Center-leftcenter: Centercenterright: Center-rightbottomleft: Bottom-left cornerbottom: Bottom-centerbottomright: Bottom-right corner
Example:
This example creates an image, sets the base position to centerleft, draws a white square, then sets the base position to centerright and draws a red square.
