Click or drag to resize

IMcBasicViewMapImageToZoomed Method

Converts image coordinates into zoomed coordinates.

Namespace:  MediaCy.IQL.Display.Viewer
Assembly:  MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
Syntax
VB
Sub MapImageToZoomed ( 
	lPointCount As Integer,
	ByRef pFloatImageCoords As SINGLEPOINT,
	<OutAttribute> ByRef pLongZoomedCoords As LONGPOINT
)

Parameters

lPointCount
Type: SystemInt32
long : Number of coordinates to convert.
pFloatImageCoords
Type: MediaCy.IQL.ObjectManagerSINGLEPOINT
SINGLEPOINT* : The real coordinates into the image.
pLongZoomedCoords
Type: MediaCy.IQL.ObjectManagerLONGPOINT
LONGPOINT* : The resulting integer coordinates into the client window.
Remarks
Image 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 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