All Cadcorp SIS API Methods

GetViewPos

Description

Gets the real world position in the current view from a screen position and size in pixels.

Syntax

Visual Basic
Public Function GetViewPos( _
 ByVal x As Integer, _
 ByVal y As Integer, _
 ByVal z As Integer, _
 ByVal xPos As Integer, _
 ByVal xPos As Integer, _
 ByVal xSize As Integer, _
 ByVal ySize As Integer, _
) As Integer

Parameters

x
The x coordinate of the returned world position.
 
 
y
The y coordinate of the returned world position.
 
 
z
The z coordinate of the returned world position.
 
 
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.
 

Remarks

Available: GEO

Group:

Example

Dim x, y, z
sis.GetViewPos (x, y, z, 150, 150, 300, 300)

Gets the real world coordinates for the centre point if the image is 300 pixels wide and 300 pixels high.