GetViewPosEx
Gets the position in the current view from a screen position and size in pixels, as a comma-separated string.
Visual Basic |
---|
Public Function GetViewPosEx( _
ByVal xPos As Integer, _
ByVal xPos As Integer, _
ByVal xSize As Integer, _
ByVal ySize As Integer, _
) As Integer
|
- xPos
- x coordinate of the pixel position in the image to query.
- yPos
- y coordinate of the pixel position in the image to query.
- xSize
- x size of image in pixels.
- ySize
- y size of image in pixels.
A comma-separated string containing the x, y and z coordinates of the position. Use SplitPos to get the x, y and z values themselves.
Available: GEO
Group:
Dim ret
sis.GetViewPosEx (50, 50, 300, 300)
Gets the real world coordinates for the centre point if the image is 300 pixels wide and 300 pixels high. The variable ret will contain a comma delimited string in the format x, y, z.