Aspose.Imaging by Aspose

<PackageReference Include="Aspose.Imaging" Version="24.3.0" />

.NET API 15,317,024 bytes

 Point

public struct Point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
public static Point Empty { get; }

Gets a new instance of the Point structure that has X and Y values set to zero.

public bool IsEmpty { get; }

Gets a value indicating whether this Point is empty.

public int X { get; set; }

Gets or sets the x-coordinate of this Point.

public int Y { get; set; }

Gets or sets the y-coordinate of this Point.

public Point(int x, int y)

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

public Point(Size size)

Initializes a new instance of the Point structure from the Size structure.

public Point(int dw)

Initializes a new instance of the Point structure using coordinates specified by an integer value.

public static Point Add(Point point, Size size)

Adds the specified Size to the specified Point.

public static Point Ceiling(PointF point)

Converts the specified PointF to a Point by rounding the values of the PointF to the next higher integer values.

public static void FromLong(long packedPoint, out int x, out int y)

Deconstruct a Point object packed into a long object to separate X and Y int values.

public static Point op_Addition(Point point, Size size)

Translates a Point by a given Size.

public static bool op_Equality(Point point1, Point point2)

Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.

public static Size op_Explicit(Point point)

Converts the specified Point structure to a Size structure.

public static PointF op_Implicit(Point point)

Converts the specified Point structure to the PointF structure.

public static bool op_Inequality(Point point1, Point point2)

Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal.

public static Point op_Subtraction(Point point, Size size)

Translates a Point by the negative of a given Size.

public static Point Round(PointF point)

Converts the specified PointF to a Point object by rounding the Point values to the nearest integer.

public static Point Subtract(Point point, Size size)

Returns the result of subtracting specified Size from the specified Point.

public static Point Truncate(PointF point)

Converts the specified PointF to a Point by truncating the values of the Point.

public void Offset(Point point)

Translates this Point by the specified Point.

public void Offset(int dx, int dy)

Translates this Point by the specified amount.

public long ToLong()

Convert this Point to a single long value, containing X and Y coordinates in high and low bits.