Search Results for

    Show / Hide Table of Contents
    View Source

    Class ImageCropCoordinates

    Represents the coordinates of an image crop area in the Delivery API.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public class ImageCropCoordinates

    Constructors

    View Source

    ImageCropCoordinates(decimal, decimal, decimal, decimal)

    Initializes a new instance of the ImageCropCoordinates class.

    Declaration
    public ImageCropCoordinates(decimal x1, decimal y1, decimal x2, decimal y2)
    Parameters
    Type Name Description
    decimal x1

    The X coordinate of the top-left corner.

    decimal y1

    The Y coordinate of the top-left corner.

    decimal x2

    The X coordinate of the bottom-right corner.

    decimal y2

    The Y coordinate of the bottom-right corner.

    Properties

    View Source

    X1

    Gets the X coordinate of the top-left corner.

    Declaration
    public decimal X1 { get; }
    Property Value
    Type Description
    decimal
    View Source

    X2

    Gets the X coordinate of the bottom-right corner.

    Declaration
    public decimal X2 { get; }
    Property Value
    Type Description
    decimal
    View Source

    Y1

    Gets the Y coordinate of the top-left corner.

    Declaration
    public decimal Y1 { get; }
    Property Value
    Type Description
    decimal
    View Source

    Y2

    Gets the Y coordinate of the bottom-right corner.

    Declaration
    public decimal Y2 { get; }
    Property Value
    Type Description
    decimal
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX