C# Class PicasaUploader.ImageScaler

Mostrar archivo Open project: ivanz/PicasaUploader

Public Methods

Method 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

Method 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 method

public static ScaleDown ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
return Image

ScaleDown() public static method

public static ScaleDown ( Stream imageStream, int newWidth, int newHeight, bool preserveAspect ) : Stream
imageStream Stream
newWidth int
newHeight int
preserveAspect bool
return Stream

ScaleToThumbnail() public static method

public static ScaleToThumbnail ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
return Image