Search Results for

    Show / Hide Table of Contents

    Class PointF

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

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

    Constructors

    PointF(Single, Single)

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

    Declaration
    public PointF(float x, float y)
    Parameters
    Type Name Description
    System.Single x
    System.Single y

    Properties

    X

    Gets or sets the x-coordinate of this PointF.

    Declaration
    public float X { get; set; }
    Property Value
    Type Description
    System.Single

    Y

    Gets or sets the y-coordinate of this PointF.

    Declaration
    public float Y { get; set; }
    Property Value
    Type Description
    System.Single

    Methods

    Equals(Object)

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

    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(Single, Single)

    Translates this PointF by the specified amount.

    Declaration
    public void Offset(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx

    The amount to offset the x-coordinate.

    System.Single dy

    The amount to offset the y-coordinate.

    Operators

    Implicit(PointF to PointF)

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

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

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

    Returns
    Type Description
    Microsoft.Maui.Graphics.PointF

    Implicit(PointF to PointF)

    Implicitly casts a PointF object to SixLabors.ImageSharp.PointF

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

    PointF will automatically be casted to SixLabors.ImageSharp.PointF

    Returns
    Type Description
    SixLabors.ImageSharp.PointF

    Implicit(PointF to SKPoint)

    Implicitly casts PointF objects to SkiaSharp.SKPoint

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

    PointF will automatically be casted to SkiaSharp.SKPoint

    Returns
    Type Description
    SkiaSharp.SKPoint

    Implicit(PointF to PointF)

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

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

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

    Returns
    Type Description
    PointF

    Implicit(PointF to PointF)

    Implicitly casts SixLabors.ImageSharp.PointF objects to PointF

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

    SixLabors.ImageSharp.PointF will automatically be casted to PointF

    Returns
    Type Description
    PointF

    Implicit(SKPoint to PointF)

    Implicitly casts SkiaSharp.SKPoint objects to PointF

    Declaration
    public static implicit operator PointF(SKPoint point)
    Parameters
    Type Name Description
    SkiaSharp.SKPoint point

    SkiaSharp.SKPoint will automatically be casted to PointF

    Returns
    Type Description
    PointF
    ☀
    ☾
    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.