IMcBasicViewMapZoomedToImage Method
|
|
Converts zoomed coordinates into image coordinates.
Namespace:
MediaCy.IQL.Display.Viewer
Assembly:
MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
SyntaxSub MapZoomedToImage (
lPointCount As Integer,
ByRef pLongZoomedCoords As LONGPOINT,
<OutAttribute> ByRef pFloatImageCoords As SINGLEPOINT
)
Parameters
- lPointCount
- Type: SystemInt32
long : Number of coordinates to convert. - pLongZoomedCoords
- Type: MediaCy.IQL.ObjectManagerLONGPOINT
LONGPOINT* : The integer coordinates into the client window. - pFloatImageCoords
- Type: MediaCy.IQL.ObjectManagerSINGLEPOINT
SINGLEPOINT* : The resulting real coordinates into the image.
RemarksImage coordinates are real numbers and provide sub-pixel accuracy.
Zoomed coordinates are integers and represent the actual pixel within the
display, or client window, of the image. Zoomed coordinate 0:0 represents
the upper left corner of the display window.
The conversion is relative to the center of each image pixel. I.E. pFloatImageCoords(1.0:1.0)
coresponds to the center of the second pixel in the second row.
Refer to IMcView.MapImageToZoomed for further details.
Note |
---|
When this method is called from within the AboutToPaint or the PostPaint
methods of the _IMcViewEvents or _IMcBasicViewEvents event interfaces, then
"zoomed coordinates" are interpreted as logical coordinates for the device
context being drawn into (the stHDC argument in the notification calls). At
all other times, "zoomed coordinates" are client coordinates (i.e., logical
coordinates when the mapping mode is set to MM_TEXT). |
See Also