Class PointF
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
Inheritance
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)
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 |