---
title: "ZoomMode Enumeration"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WebControls_ZoomMode.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ZoomMode Enumeration
 
Contains possible values for the zooming modes.
 
**Namespace:** [Aurigma.GraphicsMill.WebControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WebControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WebControls (in Aurigma.GraphicsMill.WebControls.dll)
 
## Syntax
  
```
Public Enumeration ZoomMode
```
 
```csharp
public enum ZoomMode
```
 
## Members

|   |  Member name |  Description |
| --- | --- | --- |
 |   |  None |  Zoom modifier is specified only manually. Use [Zoom](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WebControls_BitmapViewer_Zoom.htm.md) property. Also, you can use some zooming navigator controls. |
 |   |  BestFit |  Zoom modifier is calculated automatically so that entire image could fit the control. If image is smaller than the control client area, the image is stretched to occupy as much area as possible. |
 |   |  BestFitShrinkOnly |  Zoom modifier is calculated automatically so that entire image could fit the control. If image is smaller than the control client area, zooming modifier is set to 1 (i.e. no zoom). |
 |   |  FitToWidth |  Zoom modifier is calculated automatically so that the image width would be the same as the control client area width. If the image width is smaller than the control client area width, image is stretched. |
 |   |  FitToHeight |  Zoom modifier is calculated automatically so that the image height would be the same as the control client area height. If the image height is smaller than the control client area height, image is stretched. |
 |   |  ZoomControl |  The control is resized to have the same client area as the image dimensions. |
 |   |  FitToWidthShrinkOnly |  Zoom modifier is calculated automatically so that the image width would be the same as the control client area width. If image width is smaller than the control client area, zooming modifier is set to 1 (i.e. no zoom). |
 |   |  FitToHeightShrinkOnly |  Zoom modifier is calculated automatically so that the image height would be the same as the control client area height. If image height is smaller than the control client area, zooming modifier is set to 1 (i.e. no zoom). |
   
## See Also

### Reference

- [Aurigma.GraphicsMill.WebControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WebControls.htm.md)
