ImageGear .NET - Updated
FitType Enumeration

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace : FitType Enumeration
Specifies a particular scale and scroll state for an image.
Members
MemberDescription
ActualSize3 - Displays the image at its actual size. Note that there are a number of situations where this may fail to produce the correct results. For example, if the resolution stored in the original image file is incorrect (or there was no resolution stored in the file), then this operation will produce unexpected results.
FullHeight2 - Displays the full height of the image within the bounds of the viewer, but the right side of the image may lie outside the viewer if the aspect ratio of the image is wider than the aspect ratio of the viewer.
FullImage0 - Displays the full image within the bounds of the viewer. In most cases, the viewer will scale the image down so it will fit within the bounds of the viewer. If the image is smaller than the viewer, then the viewer will scale the image up.
FullWidth1 - Displays the full width of the image within the bounds of the viewer, but the bottom part of the image may lie outside the viewer if the aspect ratio of the image is taller than the aspect ratio of the viewer.
OneToOne4 - Displays a raster image with no scaling (each image pixel will occupy one window pixel). If the image does not have square pixels, then the viewer will show one image pixel with exactly one window pixel either horizontally or vertically, and more than one pixel in the other direction. Note that PDF images are not composed of pixels. If you use this value for a PDF image, the viewer will instead apply the ActualSize value.
Rectangle5 - This is a special value that indicates the viewer should display a particular rectangle. When you use this value, the viewer will display the specified rectangle of the image. You can only use this value with the PageView.openPage function; the PageView.fitPage function will not accept this value.
Remarks

This enumeration specifies a particular scale and scroll state. The viewer also relies on this enumeration to define the initial state of the image and image viewer applications often allow a user to select the default value for new images.

It is common for an image viewer application to have buttons that will allow a user to change the current scale and scroll state to one of these values, especially FullImage, FullWidth, and ActualSize.

Inheritance Hierarchy

Object
   ImageGear.Web.UI.FitType

See Also

Reference

ImageGear.Web.UI Namespace