Skip to main content
Visual Components are implemented in FRE for Windows.
The ScaleTypes constants are used to denote possible scale types. They can be used as the value of the ViewScale property of the ImageViewer, ZoomViewer, or TextEditor object.
module ScaleTypes
{
 const int ST_FitToWidth = -1;
 const int ST_FitToHeight = -2;
 const int ST_BestFit = -3;
 const int ST_PixelToPixel = -4;
}

Elements

Flag nameDescription
ST\_FitToWidthFits a page to width.
ST\_FitToHeightFits a page to height. This constant is not available for Zoom Viewer.
ST\_BestFitAutomatically selects the best fit. This constant is not available for Zoom Viewer.
ST\_PixelToPixelShows an image in the pixel-to-pixel mode. This constant is only available for Zoom Viewer.

Used in

IImageViewer::ViewScale IZoomViewer::ViewScale ITextEditor::ViewScale