Search Results for

    Show / Hide Table of Contents

    Class Point

    Represents an ordered pair of double x- and y-coordinates that defines a point in a two-dimensional plane.

    Inheritance
    System.Object
    Point
    Namespace: IronSoftware.Drawing
    Assembly: IronSoftware.Drawing.Common.dll
    Syntax
    public class Point : Object

    Constructors

    Point(Int32, Int32)

    Initializes a new instance of the Point struct with the specified coordinates.

    Declaration
    public Point(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y

    Properties

    X

    Gets or sets the x-coordinate of this Point.

    Declaration
    public int X { get; set; }
    Property Value
    Type Description
    System.Int32

    Y

    Gets or sets the y-coordinate of this Point.

    Declaration
    public int Y { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    Equals(Object)

    Specifies whether this Point instance contains the same coordinates as another Point.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The point to test for equality.

    Returns
    Type Description
    System.Boolean

    true if other has the same coordinates as this point instance.

    GetHashCode()

    Hashing integer based on image raw binary data.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Int

    Offset(Int32, Int32)

    Translates this Point by the specified amount.

    Declaration
    public void Offset(int dx, int dy)
    Parameters
    Type Name Description
    System.Int32 dx

    The amount to offset the x-coordinate.

    System.Int32 dy

    The amount to offset the y-coordinate.

    Operators

    Implicit(Point to Point)

    Implicitly casts Point objects to Microsoft.Maui.Graphics.Point

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    Point point

    Point will automatically be casted to Microsoft.Maui.Graphics.Point

    Returns
    Type Description
    Microsoft.Maui.Graphics.Point

    Implicit(Point to Point)

    Implicitly casts Point objects to SixLabors.ImageSharp.Point

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    Point point

    Point will automatically be casted to SixLabors.ImageSharp.Point

    Returns
    Type Description
    SixLabors.ImageSharp.Point

    Implicit(Point to SKPointI)

    Implicitly casts Point objects to SkiaSharp.SKPointI

    Declaration
    public static implicit operator SKPointI(Point point)
    Parameters
    Type Name Description
    Point point

    Point will automatically be casted to SkiaSharp.SKPointI

    Returns
    Type Description
    SkiaSharp.SKPointI

    Implicit(Point to Point)

    Implicitly casts Point objects to System.Drawing.Point

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    Point point

    Point will automatically be casted to System.Drawing.Point

    Returns
    Type Description
    System.Drawing.Point

    Implicit(Point to Point)

    Implicitly casts Microsoft.Maui.Graphics.Point objects to Point.

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    Microsoft.Maui.Graphics.Point point

    Microsoft.Maui.Graphics.Point will automatically be casted to Point

    Returns
    Type Description
    Point

    Implicit(Point to Point)

    Implicitly casts SixLabors.ImageSharp.Point objects to Point

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Point point

    System.Drawing.Point will automatically be casted to Point

    Returns
    Type Description
    Point

    Implicit(SKPointI to Point)

    Implicitly casts SkiaSharp.SKPointI objects to Point.

    Declaration
    public static implicit operator Point(SKPointI point)
    Parameters
    Type Name Description
    SkiaSharp.SKPointI point

    SkiaSharp.SKPointI will automatically be casted to Point

    Returns
    Type Description
    Point

    Implicit(Point to Point)

    Implicitly casts System.Drawing.Point objects to Point.

    Declaration
    public static implicit operator Point(Point point)
    Parameters
    Type Name Description
    System.Drawing.Point point

    System.Drawing.Point will automatically be casted to Point

    Returns
    Type Description
    Point
    ☀
    ☾
    Downloads
    • Download with Nuget
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronDrawing to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronDrawing free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.