C# Class ImageProcessor.Imaging.ResizeLayer

Encapsulates the properties required to resize an image.
Afficher le fichier Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Méthodes publiques

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

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. ///
Résultat bool

GetHashCode() public méthode

Returns the hash code for this instance.
public GetHashCode ( ) : int
Résultat int

ResizeLayer() public méthode

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 ///
Résultat System.Collections.Generic