Converts a point in screen coordinates into world coordinates based on the current view offset and zoom.
class function ScreenToWorld(const X: Single; const Y: Single): TAgkPoint; overload;
Parameters |
Description |
const X: Single |
The screen X coordinate to convert. |
const Y: Single |
The screen Y coordinate to convert. |
The point converted to world coordinates.
When the SetViewOffset is 0,0 and the ViewZoom is 1.0, world and screen coordinates are the same. For example when the view is offset by 20 pixels to the right, input at 0,0 on the screen will appear 20,0 in the world.
Copyright (c) 2012. All rights reserved.
|