Class CropEffect
An effect that performs a crop action
Implements
Namespace: ImageVault.Common.Data.Effects
Assembly: ImageVault.Common.dll
Syntax
public class CropEffect : Effect
Constructors
CropEffect()
Initializes a new instance of the CropEffect class.
Declaration
public CropEffect()
CropEffect(Rectangle)
Initializes a new instance of the CropEffect class.
Declaration
public CropEffect(Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rectangle |
CropEffect(Int32, Int32, Int32, Int32)
Initializes a new instance of the CropEffect class.
Declaration
public CropEffect(int x, int y, int width, int height)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y | |
System.Int32 | width | |
System.Int32 | height |
Properties
Height
Get/Sets the height of the CropEffect
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Width
Get/Sets the width of the CropEffect
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
X
Get/Sets the X of the CropEffect
Declaration
public int X { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Y
Get/Sets the Y of the CropEffect
Declaration
public int Y { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
Overrides
Equals(CropEffect)
Determines whether the specified CropEffect is equal to the current CropEffect.
Declaration
public bool Equals(CropEffect other)
Parameters
Type | Name | Description |
---|---|---|
CropEffect | other | The CropEffect to compare with the current CropEffect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified CropEffect is equal to the current CropEffect; otherwise, false. |
Equals(Object)
Determines whether the specified System.Object is equal to the current CropEffect.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current CropEffect. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current CropEffect; otherwise, false. |
GetHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current CropEffect. |
ToString()
Returns a System.String that represents the current CropEffect.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current CropEffect. |