GxImage: ScreenPosToViewPos

ScreenPosToViewPos

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



 Public Function ScreenPosToViewPos(
	  ByVal xsc As Long,
	  ByVal ysc As Long,
	  ByRef xv As Long,
	  ByRef yv As Long ) As Long

Parameters

xsc
Horizontal screen coordinate.
ysc
Vertical screen coordinate.
xv
Horizontal viewed image coordinate (computed).
yv
Vertical viewed 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 ScreenPosToViewPos(ByVal xsc As Long, ByVal ysc As Long, ByRef xv As Long, ByRef yv As Long) As Long

[Delphi] function ScreenPosToViewPos(xsc : Integer; ysc : Integer; var xv : Integer; var yv : Integer) : Integer;

[C++] long ScreenPosToViewPos(long xsc, long ysc, long* xv, long* yv);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods ScreenPosToImagePosV ScreenPosToViewPosV