Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ImageFocalPoint(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 Source

    Left

    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).

    View Source

    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).

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX