GxImage: ScreenPosToImagePos

ScreenPosToImagePos

This method converts screen coordinates to image coordinates (use for mouse event coordinates).



 Public Function ScreenPosToImagePos(
	  ByVal xsc As Long,
	  ByVal ysc As Long,
	  ByRef xi As Long,
	  ByRef yi As Long ) As Long

Parameters

xsc
Horizontal screen coordinate.
ysc
Vertical screen coordinate.
xi
Horizontal image coordinate (computed).
yi
Vertical image coordinate (computed).

Return Values

On error false (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function ScreenPosToImagePos(ByVal xsc As Long, ByVal ysc As Long, ByRef xi As Long, ByRef yi As Long) As Long

[Delphi] function ScreenPosToImagePos(xsc : Integer; ysc : Integer; var xi : Integer; var yi : Integer) : Integer;

[C++] long ScreenPosToImagePos(long xsc, long ysc, long* xi, long* yi);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods SaveView ScreenPosToImagePosV