C# Class SenseNet.ContentRepository.ImageResizer

ファイルを表示 Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

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

Private Methods

Method Description
GetRealXY ( double imgX, double imgY, double targetX, double targetY, double &realX, double &realY ) : void
IsPortrait ( long X, long Y ) : bool

Method Details

CreateCropedImageFile() public static method

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
return System.IO.Stream

CreateResizedImageFile() public static method

public static CreateResizedImageFile ( Stream originalStream, double x, double y, double q ) : Stream
originalStream System.IO.Stream
x double
y double
q double
return System.IO.Stream

CreateResizedImageFile() public static method

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
return System.IO.Stream

CreateResizedImageFile() public static method

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
return System.IO.Stream

CreateResizedImageFile() public static method

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
return System.IO.Stream

CreateResizedImageFile() public static method

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
return System.IO.Stream