Method GetPixelFromScenePoint
GetPixelFromScenePoint(int, int, double, double)
Converts a point from scene coordinate space to window coordinate space (in pixels).
Declaration
public Scene.View_.PixelPoint GetPixelFromScenePoint(int windowWidth, int windowHeight, double sceneX, double sceneYorZ)
Parameters
Type | Name | Description |
---|---|---|
int | windowWidth | Width of the window (or image) for which the pixel coordinate should be returned. |
int | windowHeight | Height of the window (or image) for which the pixel coordinate should be returned. |
double | sceneX | X value of the coordinate in scene coordinate space. |
double | sceneYorZ | Y or Z value of the coordinate in scene coordinate space, depending on which view mode is active. Y coordinate should is used for top view mode, Z coordinate should be used for elevation view modes. |
Returns
Type | Description |
---|---|
Scene.View_.PixelPoint |
Remarks
This method supports only top and elevation view modes. Trying to call it while in other view mode will cause an exception.
You can use GetMagneticPoint(int, int, int, int, int) method to perform an opposite convertion - from pixel space to the scene coordinate space.