Méthode | Description | |
---|---|---|
IsImageExtension ( string extension ) : bool | ||
ResizeImage ( string sourceFile, string targetFile, int maxWidth, int maxHeight, bool preserverAspectRatio, int quality ) : bool | ||
ValidateImage ( string filePath ) : bool |
Méthode | 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 | |
Résultat | 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 | |
Résultat | bool |
public static ValidateImage ( string filePath ) : bool | ||
filePath | string | |
Résultat | bool |