Click or drag to resize

mcAutoZoomMode Enumeration

Legal values for the McView.AutoZoomMode and McDisplay.AutoZoomMode properties.

Namespace:  MediaCy.IQL.Display.Viewer
Assembly:  MediaCy.IQL.Display.Viewer (in MediaCy.IQL.Display.Viewer.dll) Version: 10.0.6912.0
Syntax
VB
Public Enumeration mcAutoZoomMode
Members
  Member nameValueDescription
mazmNone0The image is displayed using the currentMcView.Magnification settings. The aspect ratio of the image is preserved, so part of it may be cut off or not fully displayed both vertically and/or horizontally.
mazmBestFit1McView.Magnification is adjusted so that theentire image fits the display window to the extent possible while still preserving its aspect ratio. Since the aspect ratio of the image is preserved, part of it may be cut off or not fully displayed either vertically or horizontally.
mazmFitToWidth2McView.Magnification is adjusted so that thewidth of the image matches the width of the display window. The aspect ratio of the image is preserved, so part of it may be cut off or not fully displayed vertically.
mazmFitToHeight3McView.Magnification is adjusted so that theheight of the image matches the height of the display window. The aspect ratio of the image is preserved, so part of it may be cut off or not fully displayed horizontally.
mazmFitModeMask3A mask for the basic fit mode, excluding anydisplay flags.
mazmCenteredFit256A display flag, which if OR'ed with one of thebasic fit modes will cause the image to be centered along either axis where it is too small. Absent this flag, excess fill will appear at the right and/or bottom of the display area.
mazmAddBorder512A display flag, which if OR'ed with one of thebasic fit modes will cause a border to be drawn around the image to identify the filled area of the display. Absent this flag, no border is drawn to identify the transition to the fill area. The color of this border is specified by the McDisplay.FillColors property with the WhichColor argument set to mcWhichFillColors.mcwfcBorder; it is blue by default. The border width is 3 pixels by default and can be changed by assigning mcDisplayExCommandFlags.mcdecfFillBorderWidthSet to the McDisplayEx.CommandFlags property.
Remarks
The AutoZoomMode property is used when attaching an image to the viewer to describe how the viewer should display, or size, the image. In all cases, the image aspect ratio is maintained. Two flags may be OR'ed in with the basic to control aspects of the display.
See Also