Search Results for

    Show / Hide Table of Contents
    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.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class ImageUrlGenerationOptions.FocalPointPosition

    Constructors

    View Source

    FocalPointPosition(decimal, decimal)

    Initializes a new instance of the ImageUrlGenerationOptions.FocalPointPosition class.

    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
    Type Description
    decimal
    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
    Type Description
    decimal

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(FocalPointPosition?)

    Declaration
    public bool Equals(ImageUrlGenerationOptions.FocalPointPosition? other)
    Parameters
    Type Name Description
    ImageUrlGenerationOptions.FocalPointPosition other
    Returns
    Type Description
    bool
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX