ImageGear.Web.UI Namespace Client API Library > ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI_namespace : FitType Enumeration |
Member | Description |
---|---|
ActualSize | 3 - 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. |
FullHeight | 2 - 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. |
FullImage | 0 - 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. |
FullWidth | 1 - 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. |
OneToOne | 4 - 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. |
Rectangle | 5 - 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. |
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.
Object
ImageGear.Web.UI.FitType
ImageGear.Web.UI Namespace Client API~ImageGear.Web.UI_namespace