Class ImageUrlGenerationOptions.CropCoordinates
The bounds of the crop within the original image, in whatever units the registered IImageUrlGenerator uses, typically a percentage between 0.0 and 1.0.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class ImageUrlGenerationOptions.CropCoordinates
Constructors
View SourceCropCoordinates(decimal, decimal, decimal, decimal)
Declaration
public CropCoordinates(decimal left, decimal top, decimal right, decimal bottom)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | left | |
| decimal | top | |
| decimal | right | |
| decimal | bottom |
Properties
View SourceBottom
Declaration
public decimal Bottom { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Left
Declaration
public decimal Left { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Right
Declaration
public decimal Right { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Top
Declaration
public decimal Top { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Methods
View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Equals(CropCoordinates?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ImageUrlGenerationOptions.CropCoordinates? other)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageUrlGenerationOptions.CropCoordinates | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |