C# Class PicasaUploader.ImageScaler

Afficher le fichier Open project: ivanz/PicasaUploader

Méthodes publiques

Méthode Description
ScaleDown ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
ScaleDown ( Stream imageStream, int newWidth, int newHeight, bool preserveAspect ) : Stream
ScaleToThumbnail ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image

Private Methods

Méthode Description
CopyExif ( Image oldImage, Image newImage ) : void

Copies the EXIF data into the new image and adjusts the Width and Height accordingly.

ScaleCore ( Image image, int newWidth, int newHeight, bool preserveAspect, InterpolationMode quality ) : Image

Method Details

ScaleDown() public static méthode

public static ScaleDown ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
Résultat Image

ScaleDown() public static méthode

public static ScaleDown ( Stream imageStream, int newWidth, int newHeight, bool preserveAspect ) : Stream
imageStream Stream
newWidth int
newHeight int
preserveAspect bool
Résultat Stream

ScaleToThumbnail() public static méthode

public static ScaleToThumbnail ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
Résultat Image