Description

Converts zoomed coordinates into image coordinates.

Return Type

None  

Syntax

object.MapZoomedToImage pvarLongZoomedCoords, pvarFloatImageCoords, [bClientRelative]

The MapZoomedToImage Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McView.
pvarLongZoomedCoordsRequired. A Variant value.

VARIANT* : A SafeArray of integer zoomed coordinates.

pvarFloatImageCoordsRequired. A Variant value.

VARIANT* : A SafeArray of resulting floating point image coordinates.

bClientRelativeOptional. A Boolean value.

BOOL : Optional, indicates whether the conversion should account for Pan and Scroll (the default). When TRUE, the zoomed coordinate (0,0) is the upper left corner pixel of the client window managed by the viewer. When FALSE, the zoomed coordinate (0,0) represents the actual upper left pixel of the image.

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.

When the ZoomFactor is 1.0, MapZoomedToImage() simply converts the integer into a real number.

Refer to MapImageToZoomed for complete details.

Exceptions

E_INVALIDARG -- bad lPointCount, or a pointer is invalid.