anchor property
The anchor point for the overlay image which specifies the position offset relative to the overlay's view coordinates. Gets current anchor point for the overlay image.
Implementation
Anchor2D get anchor;
The anchor point for the overlay image which specifies the position offset relative to the overlay's view coordinates. Sets anchor point of the overlay image which specifies the position offset relative to the overlay's view coordinates.
For example, (0, 0) places the top-left corner of the image at the overlay's view coordinates. (1, 1) would place the bottom-right corner of the image at the overlay's view coordinates. (0.5, 0.5) which is the default value would center the image at the overlay's view coordinates.
Values outside the 0..1 range are also allowed, for example (0.5, 2) would display the image centered horizontally with its bottom edge above the overlay's view coordinates at the distance in pixels that is equal to the height of the image.
Implementation
set anchor(Anchor2D value);