مستطيل

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

public class Rectangle extends Struct<Rectangle>

يخزن مجموعة من أربعة أعداد صحيحة تمثل موقع وحجم المستطيل.

المنشئات

المنشئالوصف
Rectangle()
Rectangle(int x, int y, int width, int height)يُنشئ نسخة جديدة من هيكل com.aspose.imaging.Rectangle بالموقع والحجم المحددين.
Rectangle(Point location, Size size)يُنشئ نسخة جديدة من هيكل com.aspose.imaging.Rectangle بالموقع والحجم المحددين.

الطرق

طريقةالوصف
getEmpty()يحصل على نسخة جديدة من هيكل com.aspose.imaging.Rectangle حيث تكون قيم com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Width و com.aspose.imaging.Rectangle.Height مضبوطة على الصفر.
fromPoints(Point point1, Point point2)ينشئ Rectangle جديدًا من نقطتين محددتين.
ceiling(RectangleF value)يحوّل الهيكل المحدد com.aspose.imaging.RectangleF إلى هيكل com.aspose.imaging.Rectangle عن طريق تقريب قيم com.aspose.imaging.RectangleF إلى أعلى قيمة صحيحة.
truncate(RectangleF value)يقوم بتحويل الـ com.aspose.imaging.RectangleF المحدد إلى com.aspose.imaging.Rectangle عن طريق قطع قيم الـ com.aspose.imaging.RectangleF.
round(RectangleF value)يقوم بتحويل الـ com.aspose.imaging.RectangleF المحدد إلى com.aspose.imaging.Rectangle عن طريق تقريب قيم الـ com.aspose.imaging.RectangleF إلى أقرب قيم صحيحة.
inflate(Rectangle rect, int x, int y)ينشئ ويعيد نسخة موسعة من بنية الـ com.aspose.imaging.Rectangle المحددة.
intersect(Rectangle a, Rectangle b)يعيد بنية com.aspose.imaging.Rectangle ثالثة تمثل تقاطع بنيتين com.aspose.imaging.Rectangle أخريين.
union(Rectangle a, Rectangle b)يحصل على بنية com.aspose.imaging.Rectangle التي تحتوي على اتحاد بنيتين com.aspose.imaging.Rectangle.
op_Equality(Rectangle left, Rectangle right)يفحص ما إذا كانت بنيتان com.aspose.imaging.Rectangle لهما موقع وحجم متساويين.
op_Inequality(Rectangle left, Rectangle right)يفحص ما إذا كانت بنيتان com.aspose.imaging.Rectangle تختلفان في الموقع أو الحجم.
fromLeftTopRightBottom(int left, int top, int right, int bottom)ينشئ بنية com.aspose.imaging.Rectangle بالمواقع المحددة للحواف.
isEquals(Rectangle obj1, Rectangle obj2)
getLocation()يحصل أو يعيّن إحداثيات الزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
setLocation(Point value)يحصل أو يعيّن إحداثيات الزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
getSize()يحصل أو يعيّن حجم هذه البنية com.aspose.imaging.Rectangle.
setSize(Size value)يحصل أو يعيّن حجم هذه البنية com.aspose.imaging.Rectangle.
getX()يحصل أو يعيّن إحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
setX(int value)يحصل أو يعيّن إحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
getY()يحصل أو يعيّن إحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
setY(int value)يحصل أو يعيّن إحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
getWidth()يحصل على عرض هذه البنية com.aspose.imaging.Rectangle.
setWidth(int value)يعيّن عرض هذه البنية com.aspose.imaging.Rectangle.
getHeight()يحصل أو يعيّن ارتفاع هذه البنية com.aspose.imaging.Rectangle.
setHeight(int value)يحصل أو يعيّن ارتفاع هذه البنية com.aspose.imaging.Rectangle.
getLeft()يحصل أو يعيّن إحداثي x للحافة اليسرى لهذه البنية com.aspose.imaging.Rectangle.
setLeft(int value)يحصل أو يعيّن إحداثي x للحافة اليسرى لهذه البنية com.aspose.imaging.Rectangle.
getTop()يحصل أو يعيّن إحداثي y للحافة العليا لهذه البنية com.aspose.imaging.Rectangle.
setTop(int value)يحصل أو يعيّن إحداثي y للحافة العليا لهذه البنية com.aspose.imaging.Rectangle.
getRight()يحصل أو يعيّن إحداثي x الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذه البنية com.aspose.imaging.Rectangle.
setRight(int value)يحصل أو يعيّن إحداثي x الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذه البنية com.aspose.imaging.Rectangle.
getBottom()يحصل أو يعيّن إحداثي y الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذه البنية com.aspose.imaging.Rectangle.
setBottom(int value)يحصل أو يعيّن إحداثي y الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذه البنية com.aspose.imaging.Rectangle.
isEmpty()يحصل على قيمة تشير إلى ما إذا كانت جميع الخصائص الرقمية لهذه البنية com.aspose.imaging.Rectangle تساوي الصفر.
contains(int x, int y)يحدد ما إذا كانت النقطة المحددة موجودة داخل هذه البنية com.aspose.imaging.Rectangle.
contains(Point point)يحدد ما إذا كانت النقطة المحددة موجودة داخل هذه البنية com.aspose.imaging.Rectangle.
contains(Rectangle rect)يحدد ما إذا كانت المنطقة المستطيلة الممثلة بـ rect موجودة بالكامل داخل هذه البنية com.aspose.imaging.Rectangle.
inflate(int width, int height)يوسع هذه البنية com.aspose.imaging.Rectangle بالمقدار المحدد.
inflate(Size size)يوسع هذه البنية com.aspose.imaging.Rectangle بالمقدار المحدد.
intersect(Rectangle rect)يستبدل هذه البنية com.aspose.imaging.Rectangle بالتقاطع بين نفسها والـ com.aspose.imaging.Rectangle المحدد.
intersectsWith(Rectangle rect)يحدد ما إذا كان هذا المستطيل يتقاطع مع rect.
offset(Point pos)يضبط موقع هذا المستطيل بالمقدار المحدد.
offset(int x, int y)يضبط موقع هذا المستطيل بالمقدار المحدد.
normalize()يُعَدِل المستطيل بجعل عرضه وارتفاعه إيجابيين، واليسار أصغر من اليمين، والعلو أصغر من السفل.
equals(Object obj)يفحص ما إذا كان obj هو بنية com.aspose.imaging.Rectangle ذات نفس الموقع والحجم لهذه البنية com.aspose.imaging.Rectangle.
hashCode()يعيد رمز التجزئة لهذه البنية com.aspose.imaging.Rectangle.
toString()يحول خصائص هذه البنية com.aspose.imaging.Rectangle إلى سلسلة قابلة للقراءة البشرية.
CloneTo(Rectangle that)
Clone()

Rectangle()

public Rectangle()

Rectangle(int x, int y, int width, int height)

public Rectangle(int x, int y, int width, int height)

يُنشئ نسخة جديدة من هيكل com.aspose.imaging.Rectangle بالموقع والحجم المحددين.

Parameters:

معاملنوعالوصف
xintالإحداثي السيني للزاوية العلوية اليسرى للمستطيل.
yintالإحداثي الصادي للزاوية العلوية اليسرى للمستطيل.
widthintعرض المستطيل.
heightintارتفاع المستطيل.

Rectangle(Point location, Size size)

public Rectangle(Point location, Size size)

يُنشئ نسخة جديدة من هيكل com.aspose.imaging.Rectangle بالموقع والحجم المحددين.

Parameters:

معاملنوعالوصف
locationPointنقطة com.aspose.imaging.Point تمثل الزاوية العليا اليسرى للمنطقة المستطيلة.
sizeSizecom.aspose.imaging.Size تمثل العرض والارتفاع للمنطقة المستطيلة.

getEmpty()

public static Rectangle getEmpty()

يحصل على نسخة جديدة من هيكل com.aspose.imaging.Rectangle حيث تكون قيم com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Width و com.aspose.imaging.Rectangle.Height مضبوطة على الصفر.

Returns: Rectangle

fromPoints(Point point1, Point point2)

public static Rectangle fromPoints(Point point1, Point point2)

ينشئ Rectangle جديدًا من نقطتين محددتين. سيكون العمودان للـ Rectangle المُنشأ مساويين للنقطتين point1 و point2 الممررتين. عادةً ما تكون هذه هي الرؤوس المتقابلة.

Parameters:

معاملنوعالوصف
point1Pointالنقطة Point الأولى للمستطيل الجديد.
point2Pointالنقطة Point الثانية للمستطيل الجديد.

Returns: Rectangle - A newly created Rectangle.

ceiling(RectangleF value)

public static Rectangle ceiling(RectangleF value)

يحوّل الهيكل المحدد com.aspose.imaging.RectangleF إلى هيكل com.aspose.imaging.Rectangle عن طريق تقريب قيم com.aspose.imaging.RectangleF إلى أعلى قيمة صحيحة.

Parameters:

معاملنوعالوصف
valueRectangleFالبنية com.aspose.imaging.RectangleF التي سيتم تحويلها.

Returns: Rectangle - Returns a com.aspose.imaging.Rectangle.

truncate(RectangleF value)

public static Rectangle truncate(RectangleF value)

يقوم بتحويل الـ com.aspose.imaging.RectangleF المحدد إلى com.aspose.imaging.Rectangle عن طريق قطع قيم الـ com.aspose.imaging.RectangleF.

Parameters:

معاملنوعالوصف
valueRectangleFcom.aspose.imaging.RectangleF التي سيتم تحويلها.

Returns: Rectangle - A new com.aspose.imaging.Rectangle.

round(RectangleF value)

public static Rectangle round(RectangleF value)

يقوم بتحويل الـ com.aspose.imaging.RectangleF المحدد إلى com.aspose.imaging.Rectangle عن طريق تقريب قيم الـ com.aspose.imaging.RectangleF إلى أقرب قيم صحيحة.

Parameters:

معاملنوعالوصف
valueRectangleFcom.aspose.imaging.RectangleF التي سيتم تحويلها.

Returns: Rectangle - A new com.aspose.imaging.Rectangle.

inflate(Rectangle rect, int x, int y)

public static Rectangle inflate(Rectangle rect, int x, int y)

ينشئ ويعيد نسخة مُضخمة من البنية com.aspose.imaging.Rectangle المحددة. يتم تضخيم النسخة بالمقدار المحدد. تظل البنية الأصلية com.aspose.imaging.Rectangle دون تعديل.

Parameters:

معاملنوعالوصف
rectRectanglecom.aspose.imaging.Rectangle للبدء به. هذا المستطيل غير معدل.
xintالمقدار لتضخيم هذا com.aspose.imaging.Rectangle أفقيًا.
yintالمقدار لتضخيم هذا com.aspose.imaging.Rectangle عموديًا.

Returns: Rectangle - The inflated com.aspose.imaging.Rectangle.

intersect(Rectangle a, Rectangle b)

public static Rectangle intersect(Rectangle a, Rectangle b)

يعيد بنية com.aspose.imaging.Rectangle ثالثة تمثل تقاطع بنيتين com.aspose.imaging.Rectangle أخريين. إذا لم يكن هناك تقاطع، يتم إرجاع com.aspose.imaging.Rectangle فارغ.

Parameters:

معاملنوعالوصف
aRectangleالمستطيل الأول للتقاطع.
bRectangleالمستطيل الثاني للتقاطع.

Returns: Rectangle - A com.aspose.imaging.Rectangle that represents the intersection of a and b.

union(Rectangle a, Rectangle b)

public static Rectangle union(Rectangle a, Rectangle b)

يحصل على بنية com.aspose.imaging.Rectangle التي تحتوي على اتحاد بنيتين com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
aRectangleالمستطيل الأول للاتحاد.
bRectangleالمستطيل الثاني للاتحاد.

Returns: Rectangle - A com.aspose.imaging.Rectangle structure that bounds the union of the two com.aspose.imaging.Rectangle structures.

op_Equality(Rectangle left, Rectangle right)

public static boolean op_Equality(Rectangle left, Rectangle right)

يفحص ما إذا كانت بنيتان com.aspose.imaging.Rectangle لهما موقع وحجم متساويين.

Parameters:

معاملنوعالوصف
leftRectangleبنية com.aspose.imaging.Rectangle التي تقع إلى يسار عامل المساواة.
rightRectangleبنية com.aspose.imaging.Rectangle التي تقع إلى يمين عامل المساواة.

Returns: منطقي - يُعيد هذا العامل true إذا كانت بنيتان com.aspose.imaging.Rectangle لهما خصائص com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Width و com.aspose.imaging.Rectangle.Height متساوية.

op_Inequality(Rectangle left, Rectangle right)

public static boolean op_Inequality(Rectangle left, Rectangle right)

يفحص ما إذا كانت بنيتان com.aspose.imaging.Rectangle تختلفان في الموقع أو الحجم.

Parameters:

معاملنوعالوصف
leftRectangleبنية com.aspose.imaging.Rectangle التي تقع إلى يسار عامل عدم المساواة.
rightRectangleبنية com.aspose.imaging.Rectangle التي تقع إلى يمين عامل عدم المساواة.

Returns: منطقي - يُعيد هذا العامل true إذا كان أي من خصائص com.aspose.imaging.Rectangle.X أو com.aspose.imaging.Rectangle.Y أو com.aspose.imaging.Rectangle.Width أو com.aspose.imaging.Rectangle.Height في البنيتين com.aspose.imaging.Rectangle غير متساوية؛ وإلا false.

fromLeftTopRightBottom(int left, int top, int right, int bottom)

public static Rectangle fromLeftTopRightBottom(int left, int top, int right, int bottom)

ينشئ بنية com.aspose.imaging.Rectangle بالمواقع المحددة للحواف.

Parameters:

معاملنوعالوصف
يسارintالإحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
أعلىintالإحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.
يمينintالإحداثي x للزاوية السفلى اليمنى لهذه البنية com.aspose.imaging.Rectangle.
أسفلintالإحداثي y للزاوية السفلى اليمنى لهذه البنية com.aspose.imaging.Rectangle.

Returns: Rectangle - The new com.aspose.imaging.Rectangle that this method creates.

isEquals(Rectangle obj1, Rectangle obj2)

public static boolean isEquals(Rectangle obj1, Rectangle obj2)

Parameters:

معاملنوعالوصف
obj1Rectangle
obj2Rectangle

Returns: boolean

getLocation()

public Point getLocation()

يحصل أو يعيّن إحداثيات الزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Returns: Point - A com.aspose.imaging.Point that represents the upper-left corner of this com.aspose.imaging.Rectangle structure.

setLocation(Point value)

public void setLocation(Point value)

يحصل أو يعيّن إحداثيات الزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valuePointنقطة Point تمثل الزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

getSize()

public Size getSize()

يحصل أو يعيّن حجم هذه البنية com.aspose.imaging.Rectangle.

Returns: Size - A com.aspose.imaging.Size that represents the width and height of this com.aspose.imaging.Rectangle structure.

setSize(Size value)

public void setSize(Size value)

يحصل أو يعيّن حجم هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueSizecom.aspose.imaging.Size تمثل العرض والارتفاع لهذه البنية com.aspose.imaging.Rectangle.

getX()

public int getX()

يحصل أو يعيّن إحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي x للزاوية العلوية اليسرى لهذا الهيكل com.aspose.imaging.Rectangle.

setX(int value)

public void setX(int value)

يحصل أو يعيّن إحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintالإحداثي x للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

getY()

public int getY()

يحصل أو يعيّن إحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي y للزاوية العلوية اليسرى لهذا الهيكل com.aspose.imaging.Rectangle.

setY(int value)

public void setY(int value)

يحصل أو يعيّن إحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintالإحداثي y للزاوية العليا اليسرى لهذه البنية com.aspose.imaging.Rectangle.

getWidth()

public int getWidth()

يحصل على عرض هذه البنية com.aspose.imaging.Rectangle.

Returns: int - عرض هذا الهيكل com.aspose.imaging.Rectangle.

setWidth(int value)

public void setWidth(int value)

يعيّن عرض هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintعرض هذا الهيكل com.aspose.imaging.Rectangle.

getHeight()

public int getHeight()

يحصل أو يعيّن ارتفاع هذه البنية com.aspose.imaging.Rectangle.

Returns: int - ارتفاع هذا الهيكل com.aspose.imaging.Rectangle.

setHeight(int value)

public void setHeight(int value)

يحصل أو يعيّن ارتفاع هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintارتفاع هذا الهيكل com.aspose.imaging.Rectangle.

getLeft()

public int getLeft()

يحصل أو يعيّن إحداثي x للحافة اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي x للحافة اليسرى لهذا الهيكل com.aspose.imaging.Rectangle.

setLeft(int value)

public void setLeft(int value)

يحصل أو يعيّن إحداثي x للحافة اليسرى لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintإحداثي x للحافة اليسرى لهذا الهيكل com.aspose.imaging.Rectangle.

getTop()

public int getTop()

يحصل أو يعيّن إحداثي y للحافة العليا لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي y للحافة العلوية لهذا الهيكل com.aspose.imaging.Rectangle.

setTop(int value)

public void setTop(int value)

يحصل أو يعيّن إحداثي y للحافة العليا لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintإحداثي y للحافة العلوية لهذا الهيكل com.aspose.imaging.Rectangle.

getRight()

public int getRight()

يحصل أو يعيّن إحداثي x الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي x الذي هو مجموع com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذا com.aspose.imaging.Rectangle.

setRight(int value)

public void setRight(int value)

يحصل أو يعيّن إحداثي x الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintإحداثي x الذي هو مجموع com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Width لهذا com.aspose.imaging.Rectangle.

getBottom()

public int getBottom()

يحصل أو يعيّن إحداثي y الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - إحداثي y الذي هو مجموع com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذا com.aspose.imaging.Rectangle.

setBottom(int value)

public void setBottom(int value)

يحصل أو يعيّن إحداثي y الذي هو مجموع قيمتي الخاصيتين com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
valueintإحداثي y الذي هو مجموع com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Height لهذا com.aspose.imaging.Rectangle.

isEmpty()

public boolean isEmpty()

يحصل على قيمة تشير إلى ما إذا كانت جميع الخصائص الرقمية لهذه البنية com.aspose.imaging.Rectangle تساوي الصفر.

Returns: boolean - تُعيد هذه الخاصية true إذا كانت خصائص com.aspose.imaging.Rectangle.Width و com.aspose.imaging.Rectangle.Height و com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Y لهذا com.aspose.imaging.Rectangle جميعها تساوي الصفر؛ وإلا false.

contains(int x, int y)

public boolean contains(int x, int y)

يحدد ما إذا كانت النقطة المحددة موجودة داخل هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
xintالإحداثي السيني للنقطة المراد اختبارها.
yintالإحداثي الصادي للنقطة المراد اختبارها.

Returns: boolean - تُعيد هذه الطريقة true إذا كانت النقطة المعرفة بـ x و y موجودة داخل هذا الهيكل com.aspose.imaging.Rectangle؛ وإلا false.

contains(Point point)

public boolean contains(Point point)

يحدد ما إذا كانت النقطة المحددة موجودة داخل هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
pointPointالـ com.aspose.imaging.Point للاختبار.

Returns: boolean - تُعيد هذه الطريقة true إذا كانت النقطة الممثلة بـ point موجودة داخل هذا الهيكل com.aspose.imaging.Rectangle؛ وإلا false.

contains(Rectangle rect)

public boolean contains(Rectangle rect)

يحدد ما إذا كانت المنطقة المستطيلة الممثلة بـ rect موجودة بالكامل داخل هذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
rectRectangleالـ com.aspose.imaging.Rectangle للاختبار.

Returns: boolean - تُعيد هذه الطريقة true إذا كانت المنطقة المستطيلة الممثلة بـ rect موجودة بالكامل داخل هذا الهيكل com.aspose.imaging.Rectangle؛ وإلا false.

inflate(int width, int height)

public void inflate(int width, int height)

يوسع هذه البنية com.aspose.imaging.Rectangle بالمقدار المحدد.

Parameters:

معاملنوعالوصف
widthintالمقدار لتضخيم هذا com.aspose.imaging.Rectangle أفقيًا.
heightintالمقدار لتضخيم هذا com.aspose.imaging.Rectangle عموديًا.

inflate(Size size)

public void inflate(Size size)

يوسع هذه البنية com.aspose.imaging.Rectangle بالمقدار المحدد.

Parameters:

معاملنوعالوصف
sizeSizeالكمية لتوسيع هذا المستطيل.

intersect(Rectangle rect)

public void intersect(Rectangle rect)

يستبدل هذه البنية com.aspose.imaging.Rectangle بالتقاطع بين نفسها والـ com.aspose.imaging.Rectangle المحدد.

Parameters:

معاملنوعالوصف
rectRectangleالـ com.aspose.imaging.Rectangle للتقاطع معه.

intersectsWith(Rectangle rect)

public boolean intersectsWith(Rectangle rect)

يحدد ما إذا كان هذا المستطيل يتقاطع مع rect.

Parameters:

معاملنوعالوصف
rectRectangleالمستطيل للاختبار.

Returns: boolean - تُعيد هذه الطريقة true إذا كان هناك أي تقاطع؛ وإلا false.

offset(Point pos)

public void offset(Point pos)

يضبط موقع هذا المستطيل بالمقدار المحدد.

Parameters:

معاملنوعالوصف
posPointالمقدار لإزاحة الموقع.

offset(int x, int y)

public void offset(int x, int y)

يضبط موقع هذا المستطيل بالمقدار المحدد.

Parameters:

معاملنوعالوصف
xintالإزاحة الأفقية.
yintالإزاحة العمودية.

normalize()

public void normalize()

يُعَدِل المستطيل بجعل عرضه وارتفاعه إيجابيين، واليسار أصغر من اليمين، والعلو أصغر من السفل.

equals(Object obj)

public boolean equals(Object obj)

يفحص ما إذا كان obj هو بنية com.aspose.imaging.Rectangle ذات نفس الموقع والحجم لهذه البنية com.aspose.imaging.Rectangle.

Parameters:

معاملنوعالوصف
objjava.lang.Objectالكائن System.Object للاختبار.

Returns: boolean - تُرجِع هذه الطريقة true إذا كان obj هو بنية com.aspose.imaging.Rectangle وكانت خصائص com.aspose.imaging.Rectangle.X و com.aspose.imaging.Rectangle.Y و com.aspose.imaging.Rectangle.Width و com.aspose.imaging.Rectangle.Height مساوية للخصائص المقابلة لهذه البنية com.aspose.imaging.Rectangle؛ وإلا، false.

hashCode()

public int hashCode()

يعيد رمز التجزئة لهذه البنية com.aspose.imaging.Rectangle.

Returns: int - عدد صحيح يمثل رمز التجزئة لهذا المستطيل.

toString()

public String toString()

يحول خصائص هذه البنية com.aspose.imaging.Rectangle إلى سلسلة قابلة للقراءة البشرية.

Returns: java.lang.String - سلسلة تحتوي على الموضع والعرض والارتفاع لهذه البنية com.aspose.imaging.Rectangle.

CloneTo(Rectangle that)

public void CloneTo(Rectangle that)

Parameters:

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

Clone()

public Rectangle Clone()

Returns: Rectangle