C# Class ImageProcessor.Imaging.ResizeLayer

Encapsulates the properties required to resize an image.
Datei anzeigen Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool

Returns a value that indicates whether the specified object is an ResizeLayer object that is equivalent to this ResizeLayer object.

GetHashCode ( ) : int

Returns the hash code for this instance.

ResizeLayer ( Size size, ResizeMode resizeMode = ResizeMode.Pad, AnchorPosition anchorPosition = AnchorPosition.Center, bool upscale = true, float centerCoordinates = null, Size maxSize = null, List restrictedSizes = null ) : System.Collections.Generic

Initializes a new instance of the ResizeLayer class.

Method Details

Equals() public method

Returns a value that indicates whether the specified object is an ResizeLayer object that is equivalent to this ResizeLayer object.
public Equals ( object obj ) : bool
obj object /// The object to test. ///
return bool

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int

ResizeLayer() public method

Initializes a new instance of the ResizeLayer class.
public ResizeLayer ( Size size, ResizeMode resizeMode = ResizeMode.Pad, AnchorPosition anchorPosition = AnchorPosition.Center, bool upscale = true, float centerCoordinates = null, Size maxSize = null, List restrictedSizes = null ) : System.Collections.Generic
size System.Drawing.Size /// The containing the width and height to set the image to. ///
resizeMode ResizeMode /// The resize mode to apply to resized image. (Default ResizeMode.Pad) ///
anchorPosition AnchorPosition /// The to apply to resized image. (Default AnchorPosition.Center) ///
upscale bool /// Whether to allow up-scaling of images. (Default true) ///
centerCoordinates float /// The center coordinates (Default null) ///
maxSize System.Drawing.Size /// The maximum size to resize an image to. /// Used to restrict resizing based on calculated resizing ///
restrictedSizes List /// The range of sizes to restrict resizing an image to. /// Used to restrict resizing based on calculated resizing ///
return System.Collections.Generic