Class Point
Represents an ordered pair of double 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 Point : Object
Constructors
Point(Double, Double)
Initializes a new instance of the Point struct with the specified coordinates.
Declaration
public Point(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double | y |
Properties
X
Gets or sets the x-coordinate of this Point.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Y
Gets or sets the y-coordinate of this Point.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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(Double, Double)
Translates this Point by the specified amount.
Declaration
public void Offset(double dx, double dy)
Parameters
Type | Name | Description |
---|---|---|
System.Double | dx | The amount to offset the x-coordinate. |
System.Double | 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 cast 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 cast to SixLabors.ImageSharp.Point |
Returns
Type | Description |
---|---|
SixLabors.ImageSharp.Point |
Remarks
SixLabors.ImageSharp.Point only uses int instead of double for X and Y. Decimals will be removed.
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 cast to SkiaSharp.SKPointI |
Returns
Type | Description |
---|---|
SkiaSharp.SKPointI |
Remarks
SkiaSharp.SKPointI only uses int instead of double for X and Y. Decimals will be removed.
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 cast to System.Drawing.Point |
Returns
Type | Description |
---|---|
System.Drawing.Point |
Remarks
System.Drawing.Point only uses int instead of double for X and Y. Decimals will be removed.
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 cast 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 cast 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 cast 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 cast to Point |
Returns
Type | Description |
---|---|
Point |