C# Class ImageProcessor.Imaging.Resizer

Provides methods to resize images.
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat System.Drawing.Bitmap

ResizeImage() public méthode

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.
Résultat System.Drawing.Bitmap

ResizeLinear() protected méthode

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.
Résultat System.Drawing.Bitmap

ResizeLinear() protected méthode

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.
Résultat System.Drawing.Bitmap

Resizer() public méthode

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

Resizer() public méthode

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