C# Class jQuery_File_Upload.MVC5.Helpers.ImageHandler

Afficher le fichier Open project: TheKalin/jQuery-File-Upload.MVC5 Class Usage Examples

Méthodes publiques

Méthode Description
GetThumbnailSize ( Image original ) : Size
LoadImage ( string path ) : Bitmap
Save ( Bitmap image, int maxWidth, int maxHeight, int quality, string filePath ) : void

Method to resize, convert and save the image.

Private Methods

Méthode Description
GetEncoderInfo ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Method to get encoder infor for given image format.

Method Details

GetThumbnailSize() public static méthode

public static GetThumbnailSize ( Image original ) : Size
original Image
Résultat System.Drawing.Size

LoadImage() public static méthode

public static LoadImage ( string path ) : Bitmap
path string
Résultat System.Drawing.Bitmap

Save() public méthode

Method to resize, convert and save the image.
public Save ( Bitmap image, int maxWidth, int maxHeight, int quality, string filePath ) : void
image System.Drawing.Bitmap Bitmap image.
maxWidth int resize width.
maxHeight int resize height.
quality int quality setting value.
filePath string file path.
Résultat void