نقطة
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct
public class Point extends Struct<Point>
يمثل زوجًا مرتبًا من إحداثيات x و y صحيحة يحدد نقطة في مستوى ثنائي الأبعاد.
المنشئات
| المنشئ | الوصف |
|---|---|
| Point() | |
| Point(int x, int y) | ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point بالإحداثيات المحددة. |
| Point(Size size) | ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point من هيكل Aspose.Imaging.Size. |
| Point(int dw) | ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point باستخدام إحداثيات محددة بقيمة عدد صحيح. |
الطرق
| طريقة | الوصف |
|---|---|
| getEmpty() | يحصل على مثيل جديد لهياكل Aspose.Imaging.Point تكون قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y فيهما صفر. |
| add(Point point, Size size) | يضيف Aspose.Imaging.Size المحدد إلى Aspose.Imaging.Point المحدد. |
| subtract(Point point, Size size) | يرجع نتيجة طرح Aspose.Imaging.Size المحدد من Aspose.Imaging.Point المحدد. |
| ceiling(PointF point) | يحوّل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق تقريب قيم Aspose.Imaging.PointF إلى القيم الصحيحة الأعلى. |
| round(PointF point) | يحوّل Aspose.Imaging.PointF المحدد إلى كائن Aspose.Imaging.Point عن طريق تقريب قيم Aspose.Imaging.Point إلى أقرب عدد صحيح. |
| truncate(PointF point) | يحوّل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق قطع قيم Aspose.Imaging.Point. |
| op_Addition(Point point, Size size) | ينقل Aspose.Imaging.Point بمقدار Aspose.Imaging.Size معين. |
| op_Subtraction(Point point, Size size) | ينقل Aspose.Imaging.Point بالسالب من Aspose.Imaging.Size المحدد. |
| op_Equality(Point point1, Point point2) | يقارن كائنين من نوع Aspose.Imaging.Point. |
| op_Inequality(Point point1, Point point2) | يقارن كائنين من نوع Aspose.Imaging.Point. |
| to_Size(Point point) | يحوّل هيكل Aspose.Imaging.Point المحدد إلى هيكل Aspose.Imaging.Size. |
| to_PointF(Point point) | يحوّل هيكل Point المحدد إلى هيكل PointF. |
| fromLong(long packedPoint, int[] x, int[] y) | يفكّ تجميع كائن Point المعبأ في كائن طويل إلى قيم X و Y منفصلة من نوع int. |
| isEquals(Point obj1, Point obj2) | |
| isEmpty() | يحصل على قيمة تشير إلى ما إذا كان Aspose.Imaging.Point هذا فارغاً. |
| getX() | يحصل أو يعيّن الإحداثي x لهذا Aspose.Imaging.Point. |
| setX(int value) | يحصل أو يعيّن الإحداثي x لهذا Aspose.Imaging.Point. |
| getY() | يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point. |
| setY(int value) | يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point. |
| offset(Point point) | ينقل هذا Aspose.Imaging.Point بمقدار Aspose.Imaging.Point المحدد. |
| offset(int dx, int dy) | ينقل هذا Aspose.Imaging.Point بالمقدار المحدد. |
| equals(Object obj) | يحدد ما إذا كان Aspose.Imaging.Point هذا يحتوي على نفس الإحداثيات مثل System.Object المحدد. |
| hashCode() | يعيد رمز تجزئة لهذا Aspose.Imaging.Point. |
| toLong() | حوّل هذه النقطة إلى قيمة طويلة واحدة، تحتوي على إحداثيات X و Y في البتات العليا والسفلى. |
| toString() | يحوّل هذا Aspose.Imaging.Point إلى سلسلة قابلة للقراءة البشرية. |
| CloneTo(Point that) | |
| Clone() |
Point()
public Point()
Point(int x, int y)
public Point(int x, int y)
ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point بالإحداثيات المحددة.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| x | int | الموضع الأفقي للنقطة. |
| y | int | الموضع العمودي للنقطة. |
Point(Size size)
public Point(Size size)
ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point من هيكل Aspose.Imaging.Size.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| size | Size | يحتوي على إحداثيات النقطة الجديدة. |
Point(int dw)
public Point(int dw)
ينشئ مثيلاً جديداً لهياكل Aspose.Imaging.Point باستخدام إحداثيات محددة بقيمة عدد صحيح.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| dw | int | عدد صحيح 32‑بت يحدد إحداثيات النقطة الجديدة. |
getEmpty()
public static Point getEmpty()
يحصل على مثيل جديد لهياكل Aspose.Imaging.Point تكون قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y فيهما صفر.
Returns: Point
add(Point point, Size size)
public static Point add(Point point, Size size)
يضيف Aspose.Imaging.Size المحدد إلى Aspose.Imaging.Point المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Aspose.Imaging.Point للإضافة إليه. |
| size | Size | Aspose.Imaging.Size لإضافتها إلى point. |
Returns:
Point - The Aspose.Imaging.Point that is the result of the addition operation.
subtract(Point point, Size size)
public static Point subtract(Point point, Size size)
يرجع نتيجة طرح Aspose.Imaging.Size المحدد من Aspose.Imaging.Point المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Aspose.Imaging.Point ليتم طرحها منها. |
| size | Size | Aspose.Imaging.Size ليتم طرحها من point. |
Returns:
Point - The Aspose.Imaging.Point that is the result of the subtraction operation.
ceiling(PointF point)
public static Point ceiling(PointF point)
يحوّل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق تقريب قيم Aspose.Imaging.PointF إلى القيم الصحيحة الأعلى.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | Aspose.Imaging.PointF للتحويل. |
Returns:
Point - The Aspose.Imaging.Point this method converts to.
round(PointF point)
public static Point round(PointF point)
يحوّل Aspose.Imaging.PointF المحدد إلى كائن Aspose.Imaging.Point عن طريق تقريب قيم Aspose.Imaging.Point إلى أقرب عدد صحيح.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | Aspose.Imaging.PointF للتحويل. |
Returns:
Point - The Aspose.Imaging.Point this method converts to.
truncate(PointF point)
public static Point truncate(PointF point)
يحوّل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق قطع قيم Aspose.Imaging.Point.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | PointF | Aspose.Imaging.PointF للتحويل. |
Returns:
Point - The Aspose.Imaging.Point this method converts to.
op_Addition(Point point, Size size)
public static Point op_Addition(Point point, Size size)
ينقل Aspose.Imaging.Point بمقدار Aspose.Imaging.Size معين.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Aspose.Imaging.Point للتحويل. |
| size | Size | Aspose.Imaging.Size يحدد زوج الأرقام لإضافتها إلى إحداثيات point. |
Returns:
Point - The translated Aspose.Imaging.Point.
op_Subtraction(Point point, Size size)
public static Point op_Subtraction(Point point, Size size)
ينقل Aspose.Imaging.Point بالسالب من Aspose.Imaging.Size المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Aspose.Imaging.Point للتحويل. |
| size | Size | Aspose.Imaging.Size يحدد زوج الأرقام لطرحها من إحداثيات point. |
Returns:
Point - A Aspose.Imaging.Point structure that is translated by the negative of a given Aspose.Imaging.Size structure.
op_Equality(Point point1, Point point2)
public static boolean op_Equality(Point point1, Point point2)
يقارن كائنين من نوع Aspose.Imaging.Point. النتيجة تحدد ما إذا كانت قيم خصائص Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y لكلا الكائنين متساوية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point1 | Point | Aspose.Imaging.Point الأول للمقارنة. |
| point2 | Point | Aspose.Imaging.Point الثاني للمقارنة. |
Returns:
منطقي - صحيح إذا كانت قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y للـ point1 و point2 متساوية؛ وإلا، خطأ.
op_Inequality(Point point1, Point point2)
public static boolean op_Inequality(Point point1, Point point2)
يقارن كائنين من نوع Aspose.Imaging.Point. النتيجة تحدد ما إذا كانت قيم خصائص Aspose.Imaging.Point.X أو Aspose.Imaging.Point.Y لكلا الكائنين غير متساوية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point1 | Point | Aspose.Imaging.Point الأول للمقارنة. |
| point2 | Point | Aspose.Imaging.Point الثاني للمقارنة. |
Returns:
منطقي - صحيح إذا اختلفت قيم إما خصائص Aspose.Imaging.Point.X أو خصائص Aspose.Imaging.Point.Y للـ point1 و point2؛ وإلا، خطأ.
to_Size(Point point)
public static Size to_Size(Point point)
يحوّل هيكل Aspose.Imaging.Point المحدد إلى هيكل Aspose.Imaging.Size.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Aspose.Imaging.Point للتحويل. |
Returns:
Size - The Aspose.Imaging.Size that results from the conversion.
to_PointF(Point point)
public static PointF to_PointF(Point point)
يحوّل هيكل Point المحدد إلى هيكل PointF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | Point للتحويل. |
Returns:
PointF - The PointF that results from the conversion.
fromLong(long packedPoint, int[] x, int[] y)
public static void fromLong(long packedPoint, int[] x, int[] y)
يفكّ تجميع كائن Point المعبأ في كائن طويل إلى قيم X و Y منفصلة من نوع int.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| packedPoint | long | كائن Point المعبأ في قيمة طويلة واحدة. |
| x | int[] | قيمة X المستخرجة من Point المعبأ. |
| y | int[] | القيمة المستخرجة من قيمة Point Y المعبأة. |
isEquals(Point obj1, Point obj2)
public static boolean isEquals(Point obj1, Point obj2)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj1 | Point | |
| obj2 | Point |
Returns: boolean
isEmpty()
public boolean isEmpty()
يحصل على قيمة تشير إلى ما إذا كان Aspose.Imaging.Point هذا فارغاً.
Returns:
منطقي - صحيح إذا كان كل من Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y يساويان 0؛ وإلا، خطأ.
getX()
public int getX()
يحصل أو يعيّن الإحداثي x لهذا Aspose.Imaging.Point.
Returns: int
setX(int value)
public void setX(int value)
يحصل أو يعيّن الإحداثي x لهذا Aspose.Imaging.Point.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | int |
getY()
public int getY()
يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point.
Returns: int
setY(int value)
public void setY(int value)
يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | int |
offset(Point point)
public void offset(Point point)
ينقل هذا Aspose.Imaging.Point بمقدار Aspose.Imaging.Point المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| point | Point | الـ Aspose.Imaging.Point المستخدم لإزاحة هذا Aspose.Imaging.Point. |
offset(int dx, int dy)
public void offset(int dx, int dy)
ينقل هذا Aspose.Imaging.Point بالمقدار المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| dx | int | القيمة المستخدمة لإزاحة إحداثي x. |
| dy | int | القيمة المستخدمة لإزاحة إحداثي y. |
equals(Object obj)
public boolean equals(Object obj)
يحدد ما إذا كان Aspose.Imaging.Point هذا يحتوي على نفس الإحداثيات مثل System.Object المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| obj | java.lang.Object | الكائن System.Object للاختبار. |
Returns:
منطقي - صحيح إذا كان obj هو Aspose.Imaging.Point وله نفس الإحداثيات مثل هذا Aspose.Imaging.Point.
hashCode()
public int hashCode()
يعيد رمز تجزئة لهذا Aspose.Imaging.Point.
Returns: int - قيمة تجزئة (hash code) لهذا الكائن، مناسبة للاستخدام في خوارزميات التجزئة وهياكل البيانات مثل جدول التجزئة.
toLong()
public final long toLong()
حوّل هذه النقطة إلى قيمة طويلة واحدة، تحتوي على إحداثيات X و Y في البتات العليا والسفلى.
Returns: طويل - كائن Point المعبأ في قيمة طويلة واحدة.
toString()
public String toString()
يحوّل هذا Aspose.Imaging.Point إلى سلسلة قابلة للقراءة البشرية.
Returns:
java.lang.String - System.String الذي يمثل هذه الحالة.
CloneTo(Point that)
public void CloneTo(Point that)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| that | Point |
Clone()
public Point Clone()
Returns: Point