---
title: "ImageFitMode Enumeration"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ImageFitMode.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/)

# ImageFitMode Enumeration
 
Contains values specifying how to handle situations when the image is not fit at its placeholder at the page.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Enumeration ImageFitMode
```
 
```csharp
public enum ImageFitMode
```
 
## Members

|   |  Member name |  Description |
| --- | --- | --- |
 |   |  CropToFit |  Crops the image. The crop area is centered. |
 |   |  ResizeToFit |  Resizes the image to have the same size as a placeholder for this image at the page (preserving the aspect ratio though). The image is resized even if it is smaller than the placeholder. |
 |   |  ShrinkToFit |  Resizes the image to have the same size as a placeholder for this image at the page (preserving the aspect ratio though) only if the image is larger than the placeholder. If the image is smaller, it is not changed. |
 |   |  ResizeToFill |  Resizes the image so that it fills the whole placeholder, even if the resulting image is larger than the placeholder. The aspect ratio is preserved. |
   
## See Also

### Reference

- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
