C# Класс ImageProcessor.Imaging.Resizer

Provides methods to resize images.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ResizeImage ( Image source, bool linear ) : Bitmap

Resizes the given image.

Resizer ( ResizeLayer resizeLayer ) : System

Initializes a new instance of the Resizer class.

Resizer ( Size size ) : System

Initializes a new instance of the Resizer class.

Защищенные методы

Метод Описание
ResizeComposite ( Image source, int width, int height, Rectangle destination ) : Bitmap

Gets an image resized using the composite color space without any gamma correction adjustments.

ResizeLinear ( Image source, int width, int height, Rectangle destination ) : Bitmap

Gets an image resized using the linear color space with gamma correction adjustments.

ResizeLinear ( Image source, int width, int height, Rectangle destination, AnimationProcessMode animationProcessMode ) : Bitmap

Gets an image resized using the linear color space with gamma correction adjustments.

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

Метод Описание
ResizeImage ( Image source, int width, int height, int maxWidth, int maxHeight, List restrictedSizes, ResizeMode resizeMode = ResizeMode.Pad, AnchorPosition anchorPosition = AnchorPosition.Center, bool upscale = true, float centerCoordinates = null, bool linear = false ) : Bitmap

Resizes the given image.

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

ResizeComposite() защищенный Метод

Gets an image resized using the composite color space without any gamma correction adjustments.
protected ResizeComposite ( Image source, int width, int height, Rectangle destination ) : Bitmap
source Image The source image.
width int The width to resize to.
height int The height to resize to.
destination System.Drawing.Rectangle The destination rectangle.
Результат System.Drawing.Bitmap

ResizeImage() публичный Метод

Resizes the given image.
public ResizeImage ( Image source, bool linear ) : Bitmap
source Image The source to resize.
linear bool Whether to resize the image using the linear color space.
Результат System.Drawing.Bitmap

ResizeLinear() защищенный Метод

Gets an image resized using the linear color space with gamma correction adjustments.
protected ResizeLinear ( Image source, int width, int height, Rectangle destination ) : Bitmap
source Image The source image.
width int The width to resize to.
height int The height to resize to.
destination System.Drawing.Rectangle The destination rectangle.
Результат System.Drawing.Bitmap

ResizeLinear() защищенный Метод

Gets an image resized using the linear color space with gamma correction adjustments.
protected ResizeLinear ( Image source, int width, int height, Rectangle destination, AnimationProcessMode animationProcessMode ) : Bitmap
source Image The source image.
width int The width to resize to.
height int The height to resize to.
destination System.Drawing.Rectangle The destination rectangle.
animationProcessMode AnimationProcessMode The process mode for frames in animated images.
Результат System.Drawing.Bitmap

Resizer() публичный Метод

Initializes a new instance of the Resizer class.
public Resizer ( ResizeLayer resizeLayer ) : System
resizeLayer ResizeLayer /// The . ///
Результат System

Resizer() публичный Метод

Initializes a new instance of the Resizer class.
public Resizer ( Size size ) : System
size System.Drawing.Size /// The to resize the image to. ///
Результат System