ResizeMode Enumeration
Defines the resize modes which are used to determine the resulting width and height of an image
and resolve aspect ratio differences between the requested dimensions
and the original image's dimensions.
Namespace: GleamTech.ImageUltimateAssembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 6.2.0
Public Enumeration ResizeMode
Max |
Width and height are considered maximum values.
Either the resulting width or height may be smaller than the given ones to maintain the aspect ratio.
The resize will not occur if the image is already smaller than the given size.
|
MaxFit |
Same as Max but the resize will occur even if the image is already smaller
than the given size.
|
Min |
Width and height are considered minimum values.
Either the resulting width or height may be larger than the given ones to maintain the aspect ratio.
The resize will not occur if the image is already larger than the given size.
|
MinFit |
Same as Min but the resize will occur even if the image is already larger
than the given size.
|
Stretch |
Width and height are considered exact values.
The image is stretched if there is an aspect ratio difference.
|
Percentage |
Width and height are treated as percentages.
If either width or height is specified, width and height are both scaled by the same percentage,
maintaining the aspect ratio.
If both width and height are specified, width and height are individually scaled by the respective percentage,
ignoring the aspect ratio.
|