Class ImageFocalPoint
Represents the focal point of an image in the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ImageFocalPoint
Constructors
View SourceImageFocalPoint(decimal, decimal)
Initializes a new instance of the ImageFocalPoint class.
Declaration
public ImageFocalPoint(decimal left, decimal top)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | left | The horizontal position of the focal point (0-1, where 0 is left edge and 1 is right edge). |
| decimal | top | The vertical position of the focal point (0-1, where 0 is top edge and 1 is bottom edge). |
Properties
View SourceLeft
Gets the horizontal position of the focal point.
Declaration
public decimal Left { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Remarks
Value ranges from 0 (left edge) to 1 (right edge).
Top
Gets the vertical position of the focal point.
Declaration
public decimal Top { get; }
Property Value
| Type | Description |
|---|---|
| decimal |
Remarks
Value ranges from 0 (top edge) to 1 (bottom edge).