| Constructor and Description |
|---|
Point() |
Point(int dw)
Initializes a new instance of the
Point struct using coordinates specified by an integer value. |
Point(int x,
int y)
Initializes a new instance of the
Point struct with the specified coordinates. |
Point(Size sz) |
| Modifier and Type | Method and Description |
|---|---|
static Point |
add(Point pt,
Size sz)
|
static Point |
ceiling(PointF value) |
Object |
clone() |
Point |
Clone() |
void |
CloneTo(Point that) |
boolean |
equals(Object obj)
|
boolean |
equals(Point other)
|
static Point |
getEmpty() |
int |
getX()
Gets the x-coordinate of this Point.
|
int |
getY()
Gets the y-coordinate of this Point.
|
int |
hashCode()
Returns a hash code for this
Point. |
boolean |
isEmpty()
Gets a value indicating whether this this
Point is empty. |
static boolean |
isEquals(Point obj1,
Point obj2) |
void |
offset(int dx,
int dy)
Translates this
Point by the specified amount. |
void |
offset(Point p)
|
static Point |
op_Addition(Point pt,
Size sz) |
static boolean |
op_Equality(Point left,
Point right)
Compares two
Point objects. |
static boolean |
op_Inequality(Point left,
Point right)
Compares two
Point objects. |
static Point |
op_Subtraction(Point pt,
Size sz) |
static Point |
round(PointF value)
|
void |
setX(int value)
Sets the x-coordinate of this Point.
|
void |
setY(int value)
Sets the y-coordinate of this Point.
|
static Point |
subtract(Point pt,
Size sz) |
static PointF |
to_PointF(Point p)
|
static Size |
to_Size(Point p) |
String |
toString() |
static Point |
truncate(PointF value)
Converts a PointF to a Point by performing a truncate operation on all the coordinates.
|
public Point()
public Point(int x,
int y)
Initializes a new instance of the Point struct with the specified coordinates.
x - The horizontal position of the point.y - The vertical position of the point.public Point(Size sz)
public Point(int dw)
Initializes a new instance of the Point struct using coordinates specified by an integer value.
dw - The integer value.public static Point truncate(PointF value)
Converts a PointF to a Point by performing a truncate operation on all the coordinates.
public static Point getEmpty()
public final int getX()
Gets the x-coordinate of this Point.
public final void setX(int value)
Sets the x-coordinate of this Point.
value - the x-coordinate of this Point.public final int getY()
Gets the y-coordinate of this Point.
public final void setY(int value)
Sets the y-coordinate of this Point.
value - the y-coordinate of this Point.public final boolean isEmpty()
Gets a value indicating whether this this Point is empty.
true if both X and Y are 0; otherwise, false.Point is empty.public int hashCode()
Returns a hash code for this Point.
public boolean equals(Object obj)
public final void offset(int dx,
int dy)
Translates this Point by the specified amount.
dx - The amount to offset the x-coordinate.dy - The amount to offset the y-coordinate.public final boolean equals(Point other)
public void CloneTo(Point that)
CloneTo in class com.aspose.ms.System.ValueType<Point>Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.