Enumerator that represent the available resize modes

Namespace: DotNetNuke.Services.GeneratedImage
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public enum ImageResizeMode
Visual Basic
Public Enumeration ImageResizeMode

Members

Member nameValueDescription
Fill0 Resizes the image with the given width or height without maintaing the aspect ratio.
Fit1 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.
Crop2 Crop resizes the image and removes parts of it to ensure that the dimensions of the result are exactly as specified by the transformation.
FitSquare3 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

See Also