Enum ImageResizeMode
Enumeration that represent the available resize modes.
Namespace: DotNetNuke.Services.GeneratedImage
Assembly: DotNetNuke.dll
Syntax
public enum ImageResizeMode : int
Fields
| Name | Description |
|---|---|
| Crop | Crop resizes the image and removes parts of it to ensure that the dimensions of the result are exactly as specified by the transformation. |
| Fill | Resizes the image with the given width or height without maintaining the aspect ratio. |
| Fit | Fit mode maintains the aspect ratio of the original image while ensuring that the dimensions of the result do not exceed the maximum values for the resize transformation. |
| FitSquare | Resizes the image with the given width or height and maintains the aspect ratio. The image will be centered in a square area of the chosen background color |