Description
Convert image coordinates to screen coordinates in the active view.
-
Return Type
-
None
-
Syntax
-
object.MapZoomedToImage LongZoomedCoords, FloatImageCoords, [DrawMode]
The MapZoomedToImage Method syntax has these parts: |
| object | An expression evaluating to an object of type McGraphOverlay. | | LongZoomedCoords | Required. A Variant value. VARIANT containing an array of coordinates to convert (2 long values per point).
| | FloatImageCoords | Required. A Variant value. VARIANT containing the destination array for the converted coordinates (2 float values per point).
| | DrawMode | Optional. A mcGraphOverlayDrawMode enumeration, as described in settings. Conversion mode.
| Settings The settings for DrawMode are:
 | mcgdmScreen | 1 |
Use the current IMcBasicView interface and its current zoom, pan and scroll to convert from image coordinates to screen coordinates.
|
 | mcgdmPrinter | 2 |
No conversion, objects are printed.
|
 | mcgdmImage | 4 |
Everything stays in image coordinates.
|
Remarks
This method will be most useful to users implementing their own graphic object or tool classes (McGraphObjServer and McGraphToolServer). Otherwise, since coordinates are always exposed in image coordinates, there shouldn't be any need to convert them back to screen coordinates. Both VARIANT's should contain an array with twice as many float values (Single in VB) as there are points to convert.
|