Point

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 عن طريق تقريب القيم إلى أقرب عدد صحيح.
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()يحوّل هذا Point إلى قيمة طويلة واحدة، تحتوي على إحداثيات 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:

معاملنوعالوصف
سintالموضع الأفقي للنقطة.
صintالموضع الرأسي للنقطة.

Point(Size size)

public Point(Size size)

ينشئ نسخة جديدة من بنية Aspose.Imaging.Point من بنية Aspose.Imaging.Size.

Parameters:

معاملنوعالوصف
sizeSizeيحتوي على إحداثيات النقطة الجديدة.

Point(int dw)

public Point(int dw)

ينشئ نسخة جديدة من بنية Aspose.Imaging.Point باستخدام إحداثيات محددة بقيمة عدد صحيح.

Parameters:

معاملنوعالوصف
dwintعدد صحيح 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:

معاملنوعالوصف
pointPointالـ Aspose.Imaging.Point للإضافة إليه.
sizeSizeالـ 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:

معاملنوعالوصف
pointPointالـ Aspose.Imaging.Point ليتم طرحه من.
sizeSizeالـ 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:

معاملنوعالوصف
pointPointFالـ 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 عن طريق تقريب القيم إلى أقرب عدد صحيح.

Parameters:

معاملنوعالوصف
pointPointFالـ 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:

معاملنوعالوصف
pointPointFالـ 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:

معاملنوعالوصف
pointPointالـ Aspose.Imaging.Point للتحويل.
sizeSizeAspose.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:

معاملنوعالوصف
pointPointالـ Aspose.Imaging.Point للتحويل.
sizeSizeAspose.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 لكائنين Aspose.Imaging.Point متساوية.

Parameters:

معاملنوعالوصف
point1PointAspose.Imaging.Point الأول للمقارنة.
point2PointAspose.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 لكائنين Aspose.Imaging.Point غير متساوية.

Parameters:

معاملنوعالوصف
point1PointAspose.Imaging.Point الأول للمقارنة.
point2PointAspose.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:

معاملنوعالوصف
pointPointالـ 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:

معاملنوعالوصف
pointPointالـ 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:

معاملنوعالوصف
packedPointlongكائن Point المعبأ في قيمة طويلة واحدة.
سint[]القيمة المستخرجة من X للنقطة المعبأة.
صint[]القيمة المستخرجة من Y للنقطة المعبأة.

isEquals(Point obj1, Point obj2)

public static boolean isEquals(Point obj1, Point obj2)

Parameters:

معاملنوعالوصف
obj1Point
obj2Point

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:

معاملنوعالوصف
القيمةint

getY()

public int getY()

يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point.

Returns: int

setY(int value)

public void setY(int value)

يحصل أو يعيّن الإحداثي y لهذا Aspose.Imaging.Point.

Parameters:

معاملنوعالوصف
القيمةint

offset(Point point)

public void offset(Point point)

ينقل هذا Aspose.Imaging.Point بمقدار Aspose.Imaging.Point المحدد.

Parameters:

معاملنوعالوصف
pointPointالـ Aspose.Imaging.Point المستخدم لإزاحة هذا Aspose.Imaging.Point.

offset(int dx, int dy)

public void offset(int dx, int dy)

ينقل هذا Aspose.Imaging.Point بالمقدار المحدد.

Parameters:

معاملنوعالوصف
dxintالقيمة لإزاحة إحداثي x.
dyintالقيمة لإزاحة إحداثي y.

equals(Object obj)

public boolean equals(Object obj)

يحدد ما إذا كان Aspose.Imaging.Point هذا يحتوي على نفس الإحداثيات مثل System.Object المحدد.

Parameters:

معاملنوعالوصف
objjava.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()

يحوّل هذا Point إلى قيمة طويلة واحدة، تحتوي على إحداثيات 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:

معاملنوعالوصف
thatPoint

Clone()

public Point Clone()

Returns: Point