C# Class ImageProcessor.Imaging.CropLayer

Encapsulates the properties required to crop an image.
Show file Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method 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 method

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

Equals() public method

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

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int