IMcViewMagnification Property
|
|
Expands or contracts the image (zooms in or out).
Namespace:
MediaCy.IQL.Display.Viewer
Assembly:
MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
SyntaxProperty Magnification As Double
Get
Set
Property Value
Type:
Double
RemarksAlthough 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.
Magnification is limited to 64 (each displayed image pixel occupies 64 screen
pixels). For "zoom-in" magnifications less than 1, assignments that would
require the displayed height or width of the image to be below 1 pixel are
silently ignored.
See Also