C# Класс SenseNet.ContentRepository.ImageResizer

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateCropedImageFile ( Stream originalStream, double x, double y, double q, ImageFormat outputFormat, SmoothingMode smoothingMode, InterpolationMode interpolationMode, PixelOffsetMode pixelOffsetMode, double verticalDiff, double horizontalDiff ) : Stream
CreateResizedImageFile ( Stream originalStream, double x, double y, double q ) : Stream
CreateResizedImageFile ( Stream originalStream, double x, double y, double q, ImageFormat outputFormat ) : Stream
CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching ) : Stream
CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching, ImageFormat outputFormat ) : Stream
CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching, ImageFormat outputFormat, SmoothingMode smoothingMode, InterpolationMode interpolationMode, PixelOffsetMode pixelOffsetMode ) : Stream

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

Метод Описание
GetRealXY ( double imgX, double imgY, double targetX, double targetY, double &realX, double &realY ) : void
IsPortrait ( long X, long Y ) : bool

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

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

public static CreateCropedImageFile ( Stream originalStream, double x, double y, double q, ImageFormat outputFormat, SmoothingMode smoothingMode, InterpolationMode interpolationMode, PixelOffsetMode pixelOffsetMode, double verticalDiff, double horizontalDiff ) : Stream
originalStream System.IO.Stream
x double
y double
q double
outputFormat System.Drawing.Imaging.ImageFormat
smoothingMode SmoothingMode
interpolationMode InterpolationMode
pixelOffsetMode PixelOffsetMode
verticalDiff double
horizontalDiff double
Результат System.IO.Stream

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

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q ) : Stream
originalStream System.IO.Stream
x double
y double
q double
Результат System.IO.Stream

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

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q, ImageFormat outputFormat ) : Stream
originalStream System.IO.Stream
x double
y double
q double
outputFormat System.Drawing.Imaging.ImageFormat
Результат System.IO.Stream

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

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching ) : Stream
originalStream System.IO.Stream
x double
y double
q double
allowStretching bool
Результат System.IO.Stream

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

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching, ImageFormat outputFormat ) : Stream
originalStream System.IO.Stream
x double
y double
q double
allowStretching bool
outputFormat System.Drawing.Imaging.ImageFormat
Результат System.IO.Stream

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

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q, bool allowStretching, ImageFormat outputFormat, SmoothingMode smoothingMode, InterpolationMode interpolationMode, PixelOffsetMode pixelOffsetMode ) : Stream
originalStream System.IO.Stream
x double
y double
q double
allowStretching bool
outputFormat System.Drawing.Imaging.ImageFormat
smoothingMode SmoothingMode
interpolationMode InterpolationMode
pixelOffsetMode PixelOffsetMode
Результат System.IO.Stream