C# Class ImageProcessor.Imaging.Resizer

Provides methods to resize images.
ファイルを表示 Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

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

Protected Methods

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

Private Methods

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

Method Details

ResizeComposite() protected method

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.
return System.Drawing.Bitmap

ResizeImage() public method

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.
return System.Drawing.Bitmap

ResizeLinear() protected method

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.
return System.Drawing.Bitmap

ResizeLinear() protected method

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.
return System.Drawing.Bitmap

Resizer() public method

Initializes a new instance of the Resizer class.
public Resizer ( ResizeLayer resizeLayer ) : System
resizeLayer ResizeLayer /// The . ///
return System

Resizer() public method

Initializes a new instance of the Resizer class.
public Resizer ( Size size ) : System
size System.Drawing.Size /// The to resize the image to. ///
return System