> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ScaleTypes

> ScaleTypes enumeration in ABBYY FineReader Engine Visual Components on Windows — The ScaleTypes constants are used to denote possible scale types.

<Warning>
  Visual Components are implemented in FRE for Windows.
</Warning>

The ScaleTypes constants are used to denote possible scale types. They can be used as the value of the ViewScale property of the [ImageViewer](/fine-reader/engine/visual-components-reference/imageviewer), [ZoomViewer](/fine-reader/engine/visual-components-reference/zoomviewer), or [TextEditor](/fine-reader/engine/visual-components-reference/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 name          | Description                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------- |
| ST\\\_FitToWidth   | Fits a page to width.                                                                       |
| ST\\\_FitToHeight  | Fits a page to height. This constant is not available for Zoom Viewer.                      |
| ST\\\_BestFit      | Automatically selects the best fit. This constant is not available for Zoom Viewer.         |
| ST\\\_PixelToPixel | Shows an image in the pixel-to-pixel mode. This constant is only available for Zoom Viewer. |

## Used in

[IImageViewer::ViewScale](/fine-reader/engine/visual-components-reference/imageviewer#viewscale)

[IZoomViewer::ViewScale](/fine-reader/engine/visual-components-reference/zoomviewer#viewscale)

[ITextEditor::ViewScale](/fine-reader/engine/visual-components-reference/texteditor#viewscale)
