Description

Expands or contracts the image (zooms in or out).

Property type

A Double value.  

Syntax

object.Magnification [= value]

The Magnification Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McView.
valueA Double value.

Remarks

Although this property accepts any positive valued real number within allowed limits, the viewer can only approximate the magnification desired by duplicating individual image pixels for display so that the size of the displayed image approaches the magification desired. Due to the nature of digital display, individual pixels are always replicated an integral number of times.

As an example, assume a magnification of 3.5. most pixels will be replicated three times in both the x and y directions. However, every 3rd pixel, as well as every third row, will be replicated four times.

Setting this property will also force the AutoZoomMode property to be set to mazmNone.

If the client application supports the OnPropertyChanged(ID_MV_Magnification) event, the client application may choose to retrieve the ZoomedImageWidth and ZoomedImageHeight properties and resize itself.

Notes

Magnification is limited to the range from 1/64 (skip 63th pixels) to 64 (each displayed image pixel occupies 64 screen pixels).