GxImage: ViewPosToImagePos

ViewPosToImagePos

This method converts viewed image coordinates to image coordinates.



 Public Function ViewPosToImagePos(
	  ByVal xv As Long,
	  ByVal yv As Long,
	  ByRef xi As Long,
	  ByRef yi As Long ) As Long

Parameters

xv
Horizontal viewed image coordinate.
yv
Vertical viewed image 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 ViewPosToImagePos(ByVal xv As Long, ByVal yv As Long, ByRef xi As Long, ByRef yi As Long) As Long

[Delphi] function ViewPosToImagePos(xv : Integer; yv : Integer; var xi : Integer; var yi : Integer) : Integer;

[C++] long ViewPosToImagePos(long xv, long yv, long* xi, long* yi);

Remarks

See Also

Class GxImage Overview GxImage Properties GxImage Methods ViewOLEPicture ViewPosToImagePosV