Class ImageCropCoordinates
Represents the coordinates of an image crop area in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ImageCropCoordinates
Constructors
View SourceImageCropCoordinates(decimal, decimal, decimal, decimal)
Initializes a new instance of the ImageCropCoordinates class.
Declaration
public ImageCropCoordinates(decimal x1, decimal y1, decimal x2, decimal y2)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | x1 | The X coordinate of the top-left corner. |
| decimal | y1 | The Y coordinate of the top-left corner. |
| decimal | x2 | The X coordinate of the bottom-right corner. |
| decimal | y2 | The Y coordinate of the bottom-right corner. |
Properties
View SourceX1
Gets the X coordinate of the top-left corner.
Declaration
public decimal X1 { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
X2
Gets the X coordinate of the bottom-right corner.
Declaration
public decimal X2 { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Y1
Gets the Y coordinate of the top-left corner.
Declaration
public decimal Y1 { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Y2
Gets the Y coordinate of the bottom-right corner.
Declaration
public decimal Y2 { get; }
Property Value
| Type | Description |
|---|---|
| decimal |