C# Класс PicasaUploader.ImageScaler

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ScaleDown() публичный статический Метод

public static ScaleDown ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
Результат Image

ScaleDown() публичный статический Метод

public static ScaleDown ( Stream imageStream, int newWidth, int newHeight, bool preserveAspect ) : Stream
imageStream Stream
newWidth int
newHeight int
preserveAspect bool
Результат Stream

ScaleToThumbnail() публичный статический Метод

public static ScaleToThumbnail ( Image image, int newWidth, int newHeight, bool preserveAspect ) : Image
image Image
newWidth int
newHeight int
preserveAspect bool
Результат Image