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

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging (in Aspose.Imaging.dll) Version: 19.9
Syntax
[SerializableAttribute]
public struct Point

The Point type exposes the following members.

Constructors
  NameDescription
Public methodPoint(Int32)
Initializes a new instance of the Point structure using coordinates specified by an integer value.
Public methodPoint(Size)
Initializes a new instance of the Point structure from the Size structure.
Public methodPoint(Int32, Int32)
Initializes a new instance of the Point structure with the specified coordinates.
Properties
  NameDescription
Public propertyStatic memberEmpty
Gets a new instance of the Point structure that has X and Y values set to zero.
Public propertyIsEmpty
Gets a value indicating whether this Point is empty.
Public propertyX
Gets or sets the x-coordinate of this Point.
Public propertyY
Gets or sets the y-coordinate of this Point.
Methods
  NameDescription
Public methodStatic memberAdd
Adds the specified Size to the specified Point.
Public methodStatic memberCeiling
Converts the specified PointF to a Point by rounding the values of the PointF to the next higher integer values.
Public methodEquals
Specifies whether this Point contains the same coordinates as the specified Object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this Point.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodOffset(Point)
Translates this Point by the specified Point.
Public methodOffset(Int32, Int32)
Translates this Point by the specified amount.
Public methodStatic memberRound
Converts the specified PointF to a Point object by rounding the Point values to the nearest integer.
Public methodStatic memberSubtract
Returns the result of subtracting specified Size from the specified Point.
Public methodToString
Converts this Point to a human-readable string.
(Overrides ValueTypeToString.)
Public methodStatic memberTruncate
Converts the specified PointF to a Point by truncating the values of the Point.
Operators
  NameDescription
Public operatorStatic memberAddition
Translates a Point by a given Size.
Public operatorStatic memberEquality
Compares two Point objects. The result specifies whether the values of the X and Y properties of the two Point objects are equal.
Public operatorStatic member(Point to Size)
Converts the specified Point structure to a Size structure.
Public operatorStatic member(Point to PointF)
Converts the specified Point structure to the PointF structure.
Public operatorStatic memberInequality
Compares two Point objects. The result specifies whether the values of the X or Y properties of the two Point objects are unequal.
Public operatorStatic memberSubtraction
Translates a Point by the negative of a given Size.
See Also