ImageTaskBaseTResizeWidth Method
Resizes the current image to the given width while preserving the aspect ratio.
This is a shortcut to calling
Resize(Int32, Int32, ResizeMode) method with 0 for height value.
The command is added to the chain and not executed until the actual processing is done.
Namespace: GleamTech.ImageUltimateAssembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 6.2.0
public T ResizeWidth(
int width,
ResizeMode resizeMode = ResizeMode.Max
)
Public Function ResizeWidth (
width As Integer,
Optional resizeMode As ResizeMode = ResizeMode.Max
) As T
- width Int32
-
The desired width of the resulting image.
Height will be automatically calculated to preserve aspect ratio.
Value will be treated as percentage when Percentage is used.
- resizeMode ResizeMode (Optional)
-
The resize mode which is used to determine the resulting width and height
and resolve aspect ratio differences.
TThe same instance of this class.