C# Class ImageProcessor.Imaging.CropLayer

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

Méthodes publiques

Méthode Description
CropLayer ( float left, float top, float right, float bottom, CropMode cropMode = CropMode.Percentage ) : System

Initializes a new instance of the CropLayer class.

If the CropMode is set to CropMode.Percentage then the four coordinates become percentages to reduce from each edge.

Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

Method Details

CropLayer() public méthode

Initializes a new instance of the CropLayer class.
If the CropMode is set to CropMode.Percentage then the four coordinates become percentages to reduce from each edge.
public CropLayer ( float left, float top, float right, float bottom, CropMode cropMode = CropMode.Percentage ) : System
left float The left coordinate of the crop layer.
top float The top coordinate of the crop layer.
right float The right coordinate of the crop layer.
bottom float The bottom coordinate of the crop layer.
cropMode CropMode The .
Résultat System

Equals() public méthode

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object /// The to compare with this instance. ///
Résultat bool

GetHashCode() public méthode

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Résultat int