Struct Point

Struct Point

اسم الفضاء : Aspose.Imaging تجميع: Aspose.Imaging.dll (25.4.0)

يمثل زوجًا محددًا من إحداثيات x- و y الكاملة التي تحدد نقطة في مستوى ثنائي الأبعاد.

public struct Point

الأعضاء الموروثين

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

Point(إنت، إنت)

يبدأ مثالًا جديدًا من بنية Aspose.Imaging.Point مع الإحداثيات المحددة.

public Point(int x, int y)

Parameters

x int

الموقع الأفقي للنقطة.

y int

الموقع الرأسي للنقطة.

Point(Size)

يبدأ نموذج جديد من بنية Aspose.Imaging.Point من بنية Aspose.Imaging.Size.

public Point(Size size)

Parameters

size Size

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

Point(إنت)

يبدأ مثالًا جديدًا من بنية Aspose.Imaging.Point باستخدام إحداثيات محددة بقيمة كاملة.

public Point(int dw)

Parameters

dw int

32 بت الكامل الذي يحدد الإحداثيات للنقطة الجديدة.

Properties

Empty

يحصل على مثال جديد من بنية Aspose.Imaging.Point التي لديها قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y المحددة إلى الصفر.

public static Point Empty { get; }

قيمة الممتلكات

Point

IsEmpty

يحصل على قيمة تشير إلى ما إذا كان هذا Aspose.Imaging.Point فارغ.

[JsonIgnore]
public bool IsEmpty { get; }

قيمة الممتلكات

bool

X

يحصل أو يضع اتساق x لهذا Aspose.Imaging.Point.

public int X { get; set; }

قيمة الممتلكات

int

Y

احصل أو قم بتعيين y-التنسيق لهذا Aspose.Imaging.Point.

public int Y { get; set; }

قيمة الممتلكات

int

Methods

Add(نقطة، حجم)

إضافة Aspose.Imaging.Size إلى Aspose.Imaging.Point المحدد.

public static Point Add(Point point, Size size)

Parameters

point Point

أضف إلى Aspose.Imaging.Point

size Size

إضافة Aspose.Imaging.Size إلى نقطة .

Returns

Point

Aspose.Imaging.Point الذي هو نتيجة العملية الإضافية.

Ceiling(نقطة)

تحويل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق إدراج قيم Aspose.Imaging.PointF في القيم الكاملة العليا التالية.

public static Point Ceiling(PointF point)

Parameters

point PointF

أضف إلى Aspose.Imaging.PointF لتحويل.

Returns

Point

في Aspose.Imaging.Point يتم تحويل هذه الطريقة إلى.

Equals(الموضوع)

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

public override bool Equals(object obj)

Parameters

obj object

الوسائط التي يمكن اختبارها

Returns

bool

صحيح إذا كان obj’ هو Aspose.Imaging.Point ولديه نفس الإحداثيات مثل هذا Aspose.Imaging.Point.

FromLong(الخروج، الخروج، الخروج، الخروج)

تفكيك كائن نقطة معبأة في كائن طويل لتفريق قيم X و Y int.

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

Parameters

packedPoint long

موضوع النقطة معبأة في قيمة طويلة.

x int

يتم استخراجها من قيمة نقطة X المعبأة.

y int

يتم استخراجها من القيمة النقطة Y المعبأة.

GetHashCode()

إرجاع رمز الهاش لهذا Aspose.Imaging.Point.

public override int GetHashCode()

Returns

int

رمز التشويش لهذا المثال ، مناسبة للاستخدام في خوارزميات التشويش والهياكل البيانات مثل لوحة التشويش.

Offset(Point)

يترجم هذا Aspose.Imaging.Point بواسطة Aspose.Imaging.Point المحدد.

public void Offset(Point point)

Parameters

point Point

تم استخدام Aspose.Imaging.Point لتعويض هذا Aspose.Imaging.Point.

Offset(إنت، إنت)

يترجم هذا Aspose.Imaging.Point حسب المبلغ المحدد.

public void Offset(int dx, int dy)

Parameters

dx int

المبلغ الذي يتم تعويضه عن X-Coordinate.

dy int

المبلغ الذي سيتم تعويضه عن Y-Coordinate.

Round(نقطة)

تحويل Aspose.Imaging.PointF المحدد إلى كائن Aspose.Imaging.Point عن طريق توجيه قيم Aspose.Imaging.Point إلى أقرب كائن.

public static Point Round(PointF point)

Parameters

point PointF

أضف إلى Aspose.Imaging.PointF لتحويل.

Returns

Point

في Aspose.Imaging.Point يتم تحويل هذه الطريقة إلى.

Subtract(نقطة، حجم)

إرجاع نتيجة الانحناء المحدد Aspose.Imaging.Size من المحدد Aspose.Imaging.Point.

public static Point Subtract(Point point, Size size)

Parameters

point Point

نقطة Aspose.Imaging.Point ليتم سحبها من.

size Size

الحجم إلى التخفيض من نقطة .

Returns

Point

النقطة Aspose.Imaging.Point التي هي نتيجة لعملية التخفيف.

ToLong()

تحويل هذه النقطة إلى قيمة واحدة طويلة، وتحتوي على إحداثيات X و Y في بيتات عالية و منخفضة.

public long ToLong()

Returns

long

موضوع النقطة معبأة في قيمة طويلة.

ToString()

تحويل هذا Aspose.Imaging.Point إلى شريط قابل للقراءة للإنسان.

public override string ToString()

Returns

string

نظام.String الذي يمثل هذه الحالة.

Truncate(نقطة)

تحويل Aspose.Imaging.PointF المحدد إلى Aspose.Imaging.Point عن طريق تثبيت قيم Aspose.Imaging.Point.

public static Point Truncate(PointF point)

Parameters

point PointF

أضف إلى Aspose.Imaging.PointF لتحويل.

Returns

Point

في Aspose.Imaging.Point يتم تحويل هذه الطريقة إلى.

Operators

المشغل +(نقطة، حجم)

ترجمة Aspose.Imaging.Point بواسطة Aspose.Imaging.Size.

public static Point operator +(Point point, Size size)

Parameters

point Point

نقطة الترجمة - نقطة الترجمة.

size Size

A Aspose.Imaging.Size that specifies the pair of numbers to add to the coordinates of point'.

Returns

Point

ترجمة Aspose.Imaging.Point

المشغل = =(نقطة، نقطة)

مقارنة اثنين Aspose.Imaging.Point الكائنات.نتائج تحدد ما إذا كانت قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y خصائص اثنين Aspose.Imaging.Point الكائنات متساوية.

public static bool operator ==(Point point1, Point point2)

Parameters

point1 Point

أولا Aspose.Imaging.Point للمقارنة.

point2 Point

ثاني Aspose.Imaging.Point للمقارنة.

Returns

bool

صحيح إذا كانت قيم Aspose.Imaging.Point.X و Aspose.Imaging.Point.Y من point1’ و point2’ متساوية؛ وإلا فهي كاذبة.

حجم المشغل الصريح(Point)

تحويل هيكل Aspose.Imaging.Point المحدد إلى هيكل Aspose.Imaging.Size.

public static explicit operator Size(Point point)

Parameters

point Point

يتم تحويل Aspose.Imaging.Point.

Returns

Size

The Aspose.Imaging.Size التي تنتج عن التحويل.

المشغل الافتراضي PointF(Point)

تحويل الهيكل المحدد Aspose.Imaging.Point إلى الهيكل Aspose.Imaging.PointF.

public static implicit operator PointF(Point point)

Parameters

point Point

يتم تحويل Aspose.Imaging.Point.

Returns

PointF

Aspose.Imaging.PointF التي تنشأ من التحويل.

المشغل !=(نقطة، نقطة)

مقارنة اثنين Aspose.Imaging.Point الكائنات.نتائج تحدد ما إذا كانت قيم Aspose.Imaging.Point.X أو Aspose.Imaging.Point.Y خصائص اثنين Aspose.Imaging.Point الكائنات غير متساوية.

public static bool operator !=(Point point1, Point point2)

Parameters

point1 Point

أولا Aspose.Imaging.Point للمقارنة.

point2 Point

ثاني Aspose.Imaging.Point للمقارنة.

Returns

bool

صحيح إذا كانت القيم سواء من خصائص Aspose.Imaging.Point.X أو من خصائص Aspose.Imaging.Point.Y من point1’ و point2’ تختلف؛ وإلا، وهمية.

المشغل -(نقطة، حجم)

ترجمة Aspose.Imaging.Point من خلال السلبية لـ Aspose.Imaging.Size.

public static Point operator -(Point point, Size size)

Parameters

point Point

نقطة الترجمة - نقطة الترجمة.

size Size

A Aspose.Imaging.Size that specifies the pair of numbers to subtract from the coordinates of point'.

Returns

Point

هيكل Aspose.Imaging.Point الذي يتم ترجمته من قبل السلبية لهيكل Aspose.Imaging.Size معين.

 عربي