View Source
Class ImageCropperValue.ImageCropperCropCoordinates
Represents the coordinates and dimensions of a crop area defined by the image cropper.
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ImageCropperValue.ImageCropperCropCoordinates
Constructors
View Source
ImageCropperCropCoordinates()
Declaration
public ImageCropperCropCoordinates()
Properties
View Source
X1
Gets or sets the X-coordinate of the top-left corner (X1) of the image crop rectangle.
Declaration
public decimal X1 { get; set; }
Property Value
View Source
X2
Gets or sets the X2 coordinate, representing the right boundary of the image crop rectangle.
Declaration
public decimal X2 { get; set; }
Property Value
View Source
Y1
Gets or sets the Y1 coordinate (top edge) of the image crop rectangle.
Declaration
public decimal Y1 { get; set; }
Property Value
View Source
Y2
Gets or sets the Y2 coordinate, representing the bottom edge of the image crop rectangle.
Declaration
public decimal Y2 { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(ImageCropperCropCoordinates?)
Declaration
public bool Equals(ImageCropperValue.ImageCropperCropCoordinates? other)
Parameters
Returns
View Source
GetHashCode()
Returns a hash code for this instance based on the crop coordinates.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code representing the current crop coordinates.
|
Operators
View Source
operator ==(ImageCropperCropCoordinates?, ImageCropperCropCoordinates?)
Declaration
public static bool operator ==(ImageCropperValue.ImageCropperCropCoordinates? left, ImageCropperValue.ImageCropperCropCoordinates? right)
Parameters
Returns
View Source
operator !=(ImageCropperCropCoordinates?, ImageCropperCropCoordinates?)
Declaration
public static bool operator !=(ImageCropperValue.ImageCropperCropCoordinates? left, ImageCropperValue.ImageCropperCropCoordinates? right)
Parameters
Returns