
Creates a resized bitmap from an existing image on disk. Resizes the image by
creating an aspect ratio safe image. Image is sized to the larger size of width
height and then smaller size is adjusted by aspect ratio.
Image is returned as Bitmap - call Dispose() on the returned Bitmap object
public static Bitmap ResizeImage(String lcFilename, Int32 lnWidth, Int32 lnHeight)
Return Value
Bitmap
Parameters
lcFilename
The name of the Image file to resize
lnWidth
The width of the image to resize to
lnHeight
The height of the image to resize to
Remarks
The image size parameters will keep the aspect ratio of the image intact.
If the image is smaller than the size specified the image is not resized.
See also:
Class wwImaging© West Wind Technologies, 1996-2018 • Updated: 04/28/04
Comment or report problem with topic