View Source
Class ImageUrlGenerationOptions.FocalPointPosition
The focal point position, in whatever units the registered IImageUrlGenerator uses, typically a percentage of the
total image from 0.0 to 1.0.
Assembly: Umbraco.Core.dll
Syntax
public class ImageUrlGenerationOptions.FocalPointPosition
Constructors
View Source
FocalPointPosition(decimal, decimal)
Declaration
public FocalPointPosition(decimal left, decimal top)
Parameters
| Type |
Name |
Description |
| decimal |
left |
The left position as a percentage (0.0 to 1.0).
|
| decimal |
top |
The top position as a percentage (0.0 to 1.0).
|
Properties
View Source
Left
Gets the left position of the focal point as a percentage of the total image width.
Declaration
public decimal Left { get; }
Property Value
View Source
Top
Gets the top position of the focal point as a percentage of the total image height.
Declaration
public decimal Top { get; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(FocalPointPosition?)
Declaration
public bool Equals(ImageUrlGenerationOptions.FocalPointPosition? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns