Enumerator that represent the available resize modes
Namespace: DotNetNuke.Services.GeneratedImageAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public enum ImageResizeMode |
| Visual Basic |
|---|
Public Enumeration ImageResizeMode |
Members
| Member name | Value | Description | |
|---|---|---|---|
| Fill | 0 | Resizes the image with the given width or height without maintaing the aspect ratio. | |
| Fit | 1 | 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. | |
| Crop | 2 | Crop resizes the image and removes parts of it to ensure that the dimensions of the result are exactly as specified by the transformation. | |
| FitSquare | 3 | 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 |