Method | Description | |
---|---|---|
IsImageExtension ( string extension ) : bool | ||
ResizeImage ( string sourceFile, string targetFile, int maxWidth, int maxHeight, bool preserverAspectRatio, int quality ) : bool | ||
ValidateImage ( string filePath ) : bool |
Method | Description | |
---|---|---|
GetAspectRatioSize ( int maxWidth, int maxHeight, int actualWidth, int actualHeight ) : |
||
GetJpgCodec ( ) : System.Drawing.Imaging.ImageCodecInfo | ||
ImageTools ( ) : System |
public static IsImageExtension ( string extension ) : bool | ||
extension | string | |
return | bool |
public static ResizeImage ( string sourceFile, string targetFile, int maxWidth, int maxHeight, bool preserverAspectRatio, int quality ) : bool | ||
sourceFile | string | |
targetFile | string | |
maxWidth | int | |
maxHeight | int | |
preserverAspectRatio | bool | |
quality | int | |
return | bool |
public static ValidateImage ( string filePath ) : bool | ||
filePath | string | |
return | bool |