Class Region
اسم الفضاء : Aspose.Imaging تجميع: Aspose.Imaging.dll (25.4.0)
وصف الداخلي لشكل الرسومات التي تتألف من المستطيلات والممرات.هذه الصف لا يمكن إرثها.
[JsonObject(MemberSerialization.OptIn)]
public sealed class Region
Inheritance
الأعضاء الموروثين
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Region()
إطلاق جديد Aspose.Imaging.Region.
public Region()
Region(RectangleF)
يبدأ Aspose.Imaging.Region الجديد من هيكل Aspose.Imaging.RectangleF المحدد.
public Region(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF الذي يحدد داخل Aspose.Imaging.Region الجديد.
Region(Rectangle)
يبدأ بنية Aspose.Imaging.Region الجديدة من بنية Aspose.Imaging.Rectangle المحددة.
public Region(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle الذي يحدد داخل Aspose.Imaging.Region الجديد.
Region(GraphicsPath)
يبدأ Aspose.Imaging.Region الجديد مع Aspose.Imaging.GraphicsPath المحدد.
public Region(GraphicsPath path)
Parameters
path
GraphicsPath
Aspose.Imaging.GraphicsPath الذي يحدد Aspose.Imaging.Region الجديد.
Exceptions
path’ is null.
Methods
Complement(RectangleF)
تحديث هذا Aspose.Imaging.Region لتحتوي على الجزء من بنية Aspose.Imaging.RectangleF المحددة التي لا تتداخل مع هذا Aspose.Imaging.Region.
public void Complement(RectangleF rect)
Parameters
rect
RectangleF
الهيكل Aspose.Imaging.RectangleF يكمل هذا Aspose.Imaging.Region.
Complement(Rectangle)
تحديث هذا Aspose.Imaging.Region لتحتوي على الجزء من بنية Aspose.Imaging.Rectangle المحددة التي لا تتداخل مع هذا Aspose.Imaging.Region.
public void Complement(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle يكمل هذا Aspose.Imaging.Region.
Complement(GraphicsPath)
تحديث هذا Aspose.Imaging.Region لتحتوي على الجزء من Aspose.Imaging.GraphicsPath المحدد الذي لا يتداخل مع هذا Aspose.Imaging.Region.
public void Complement(GraphicsPath path)
Parameters
path
GraphicsPath
The Aspose.Imaging.GraphicsPath لإكمال هذا Aspose.Imaging.Region.
Exceptions
path’ isnull.
Complement(Region)
تحديث هذا Aspose.Imaging.Region لتحتوي على الجزء من Aspose.Imaging.Region المحدد الذي لا يتداخل مع هذا Aspose.Imaging.Region.
public void Complement(Region region)
Parameters
region
Region
يوافق Aspose.Imaging.Region على تكملة هذا الكائن Aspose.Imaging.Region.
Exceptions
region’ isnull.
DeepClone()
إنشاء نسخة دقيقة من هذا Aspose.Imaging.Region.
public Region DeepClone()
Returns
Aspose.Imaging.Region التي يخلقها هذا الأسلوب.
Equals(الموضوع)
تحقق مما إذا كانت الأشياء متساوية.
public override bool Equals(object obj)
Parameters
obj
object
الموضوع الآخر .
Returns
نتيجة مقارنة المساواة.
Equals(المنطقة , الرسومات)
اختبار ما إذا كان Aspose.Imaging.Region المحدد هو نفسه لهذا Aspose.Imaging.Region على سطح الرسم المحدد.
public bool Equals(Region region, Graphics g)
Parameters
region
Region
فيديوهات متعلقة بـ “ Aspose.Imaging.Region ”
g
Graphics
A Aspose.Imaging.Graphics التي تمثل سطح الرسم.
Returns
صحيح إذا كان الداخلي للمنطقة هو نفسه مع الداخلي لهذه المنطقة عندما يتم تطبيق التحول المرتبط بمعيار g’؛ وإلا، وهمية.
Exceptions
g ‘or
region’ is null.
Exclude(RectangleF)
تحديث هذا Aspose.Imaging.Region لتحتوي فقط على الجزء الداخلي الذي لا يتداخل مع الهيكل المحدد Aspose.Imaging.RectangleF.
public void Exclude(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF لاستبعاد هذا Aspose.Imaging.Region.
Exclude(Rectangle)
تحديث هذا Aspose.Imaging.Region لتحتوي فقط على الجزء الداخلي الذي لا يتداخل مع الهيكل المحدد Aspose.Imaging.Rectangle.
public void Exclude(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle لاستبعاد هذا Aspose.Imaging.Region.
Exclude(GraphicsPath)
تحديث هذا Aspose.Imaging.Region لتحتوي فقط على الجزء الداخلي الذي لا يتداخل مع Aspose.Imaging.GraphicsPath المحدد.
public void Exclude(GraphicsPath path)
Parameters
path
GraphicsPath
The Aspose.Imaging.GraphicsPath لاستبعاد هذا Aspose.Imaging.Region.
Exceptions
path’ is null.
Exclude(Region)
تحديث هذا Aspose.Imaging.Region لتحتوي فقط على الجزء الداخلي الذي لا يتداخل مع Aspose.Imaging.Region المحدد.
public void Exclude(Region region)
Parameters
region
Region
The Aspose.Imaging.Region إلى استبعاد من هذا Aspose.Imaging.Region.
Exceptions
region’ is null.
GetHashCode()
احصل على رمز الهاش من الكائن الحالي.
public override int GetHashCode()
Returns
كود الهاش .
Intersect(RectangleF)
تحديث هذا Aspose.Imaging.Region إلى تقاطع نفسه مع الهيكل المحدد Aspose.Imaging.RectangleF.
public void Intersect(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF للانقسام مع هذا Aspose.Imaging.Region.
Intersect(Rectangle)
تحديث هذا Aspose.Imaging.Region إلى تقاطع نفسه مع الهيكل المحدد Aspose.Imaging.Rectangle.
public void Intersect(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle للانقسام مع هذا Aspose.Imaging.Region.
Intersect(GraphicsPath)
تحديث هذا Aspose.Imaging.Region إلى تقاطع نفسه مع Aspose.Imaging.GraphicsPath المحدد.
public void Intersect(GraphicsPath path)
Parameters
path
GraphicsPath
The Aspose.Imaging.GraphicsPath لالتقاط مع هذا Aspose.Imaging.Region.
Intersect(Region)
تحديث هذا Aspose.Imaging.Region إلى تقاطع نفسه مع Aspose.Imaging.Region المحدد.
public void Intersect(Region region)
Parameters
region
Region
تداول الخيارات الثنائية الخيارات الثنائية الخيارات الثنائية الخيارات الثنائية.
IsEmpty(Graphics)
اختبار ما إذا كان هذا Aspose.Imaging.Region لديه داخل فارغ على سطح الرسم المحدد.
public bool IsEmpty(Graphics g)
Parameters
g
Graphics
A Aspose.Imaging.Graphics التي تمثل سطح الرسم.
Returns
صحيح إذا كان الداخلي لهذا Aspose.Imaging.Region فارغًا عندما يتم تطبيق التحول المرتبط بـ g’؛ وإلا فإنه مزيف.
Exceptions
g’ is null.
IsInfinite(Graphics)
اختبار ما إذا كان هذا Aspose.Imaging.Region لديه داخل لا نهاية له على سطح الرسم المحدد.
public bool IsInfinite(Graphics g)
Parameters
g
Graphics
A Aspose.Imaging.Graphics التي تمثل سطح الرسم.
Returns
صحيح إذا كان الداخلي لهذا Aspose.Imaging.Region لا نهاية له عندما يتم تطبيق التحول المرتبط بـ g’؛ وإلا فإنه مزيف.
Exceptions
g’ is null.
IsVisible(السفينة، السفينة)
اختبار ما إذا كانت النقطة المحددة تحتوي على هذا Aspose.Imaging.Region.
public bool IsVisible(float x, float y)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
Returns
صحيح عندما يتم تضمين النقطة المحددة داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، وهمية.
IsVisible(نقطة)
اختبار ما إذا كانت الهيكل المحدد Aspose.Imaging.PointF موجودة داخل هذا Aspose.Imaging.Region.
public bool IsVisible(PointF point)
Parameters
point
PointF
هيكل Aspose.Imaging.PointF للاختبار.
Returns
صحيح عندما يتم تضمين point’ داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، مزيف.
IsVisible(السفينة، السفينة، الرسومات)
اختبار ما إذا كان النقطة المحددة موجودة داخل هذا Aspose.Imaging.Region عند سحب باستخدام Aspose.Imaging.Graphics المحددة.
public bool IsVisible(float x, float y, Graphics g)
Parameters
x
float
منسقة X من النقطة التي يجب اختبارها
y
float
منسقة النقطة التي يجب اختبارها
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين النقطة المحددة داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، وهمية.
IsVisible(نقطة، الرسومات)
اختبار ما إذا كانت الهيكل المحدد Aspose.Imaging.PointF موجودة داخل هذا Aspose.Imaging.Region عند رسمها باستخدام Aspose.Imaging.Graphics المحدد.
public bool IsVisible(PointF point, Graphics g)
Parameters
point
PointF
هيكل Aspose.Imaging.PointF للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين point’ داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، مزيف.
IsVisible(السفينة، السفينة، السفينة)
اختبار ما إذا كان أي جزء من المستطيل المحدد يحتوي على هذا Aspose.Imaging.Region.
public bool IsVisible(float x, float y, float width, float height)
Parameters
x
float
منسقة x من الزاوية العليا اليسرى من المستطيل للاختبار.
y
float
ي-منسق الزاوية العليا اليسرى من المستطيل للاختبار.
width
float
عرض المستطيل للاختبار.
height
float
ارتفاع المستقيم للاختبار.
Returns
صحيح عندما يتم تضمين أي جزء من المستطيل المحدد داخل هذا الكائن Aspose.Imaging.Region؛ وإلا، وهمية.
IsVisible(RectangleF)
اختبار ما إذا كانت أي جزء من بنية Aspose.Imaging.RectangleF المحددة تحتوي على هذا Aspose.Imaging.Region.
public bool IsVisible(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF للاختبار.
Returns
صحيح عندما تكون أي جزء من rect’ تحتوي على هذا Aspose.Imaging.Region.
IsVisible(السفينة، السفينة، السفينة، السفينة، الرسومات)
اختبار ما إذا كانت أي جزء من المستطيل المحدد موجودة داخل هذا Aspose.Imaging.Region عند سحب باستخدام Aspose.Imaging.Graphics المحدد.
public bool IsVisible(float x, float y, float width, float height, Graphics g)
Parameters
x
float
منسقة x من الزاوية العليا اليسرى من المستطيل للاختبار.
y
float
ي-منسق الزاوية العليا اليسرى من المستطيل للاختبار.
width
float
عرض المستطيل للاختبار.
height
float
ارتفاع المستقيم للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين أي جزء من المستطيل المحدد داخل هذا Aspose.Imaging.Region ؛ خلاف ذلك ، كاذب.
IsVisible(RectangleF، الرسومات)
اختبار ما إذا كانت أي جزء من بنية Aspose.Imaging.RectangleF المحددة موجودة داخل هذا Aspose.Imaging.Region عند سحب باستخدام Aspose.Imaging.Graphics المحددة.
public bool IsVisible(RectangleF rect, Graphics g)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عند إدراج rect’ داخل هذا الموقع؛ خلاف ذلك، مزيف.
IsVisible(إنت، إنت، الرسومات)
اختبار ما إذا كان النقطة المحددة موجودة داخل هذا الكائن Aspose.Imaging.Region عند سحب باستخدام الكائن Aspose.Imaging.Graphics المحدد.
public bool IsVisible(int x, int y, Graphics g)
Parameters
x
int
منسقة X من النقطة التي يجب اختبارها
y
int
منسقة النقطة التي يجب اختبارها
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين النقطة المحددة داخل هذا Aspose.Imaging.Region؛ وإلا، وهمية.
IsVisible(Point)
اختبار ما إذا كانت الهيكل المحدد Aspose.Imaging.Point موجودة داخل هذا Aspose.Imaging.Region.
public bool IsVisible(Point point)
Parameters
point
Point
هيكل Aspose.Imaging.Point للاختبار.
Returns
صحيح عندما يتم تضمين point’ داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، مزيف.
IsVisible(نقطة، الرسومات)
اختبار ما إذا كانت هيكل Aspose.Imaging.Point المحدد موجودة داخل هذا Aspose.Imaging.Region عند رسمها باستخدام Aspose.Imaging.Graphics المحدد.
public bool IsVisible(Point point, Graphics g)
Parameters
point
Point
هيكل Aspose.Imaging.Point للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين point’ داخل هذا Aspose.Imaging.Region؛ خلاف ذلك، مزيف.
IsVisible(إنت، إنت، إنت، إنت)
اختبار ما إذا كان أي جزء من المستطيل المحدد يحتوي على هذا Aspose.Imaging.Region.
public bool IsVisible(int x, int y, int width, int height)
Parameters
x
int
منسقة x من الزاوية العليا اليسرى من المستطيل للاختبار.
y
int
ي-منسق الزاوية العليا اليسرى من المستطيل للاختبار.
width
int
عرض المستطيل للاختبار.
height
int
ارتفاع المستقيم للاختبار.
Returns
صحيح عندما يتم تضمين أي جزء من المستطيل المحدد داخل هذا Aspose.Imaging.Region ؛ خلاف ذلك ، كاذب.
IsVisible(Rectangle)
اختبار ما إذا كانت أي جزء من بنية Aspose.Imaging.Rectangle المحددة تحتوي على هذا Aspose.Imaging.Region.
public bool IsVisible(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle للاختبار.
Returns
هذه الطريقة تعود حقيقية عندما يتم تضمين أي جزء من rect’ داخل هذا Aspose.Imaging.Region؛ وإلا، وهمية.
IsVisible(int، int، int، int، الرسومات)
اختبار ما إذا كانت أي جزء من المستطيل المحدد موجودة داخل هذا Aspose.Imaging.Region عند سحب باستخدام Aspose.Imaging.Graphics المحدد.
public bool IsVisible(int x, int y, int width, int height, Graphics g)
Parameters
x
int
منسقة x من الزاوية العليا اليسرى من المستطيل للاختبار.
y
int
ي-منسق الزاوية العليا اليسرى من المستطيل للاختبار.
width
int
عرض المستطيل للاختبار.
height
int
ارتفاع المستقيم للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يتم تضمين أي جزء من المستطيل المحدد داخل هذا Aspose.Imaging.Region ؛ خلاف ذلك ، كاذب.
IsVisible(الرسوم البيانية، الرسومات)
اختبار ما إذا كانت أي جزء من بنية Aspose.Imaging.Rectangle المحددة موجودة داخل هذا Aspose.Imaging.Region عند سحب باستخدام Aspose.Imaging.Graphics المحددة.
public bool IsVisible(Rectangle rect, Graphics g)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle للاختبار.
g
Graphics
Aspose.Imaging.Graphics التي تمثل سياق الرسومات.
Returns
صحيح عندما يكون أي جزء من rect’ يحتوي على هذا Aspose.Imaging.Region؛ خلاف ذلك، كاذب.
MakeEmpty()
يبدأ هذا Aspose.Imaging.Region إلى داخل فارغ.
public void MakeEmpty()
MakeInfinite()
يبدأ هذا Aspose.Imaging.Region يعارض داخلًا لا نهاية له.
public void MakeInfinite()
Transform(Matrix)
تحويل هذا Aspose.Imaging.Region بواسطة Aspose.Imaging.Matrix المحدد.
public void Transform(Matrix matrix)
Parameters
matrix
Matrix
Aspose.Imaging.Matrix التي تحويل هذا Aspose.Imaging.Region.
Exceptions
matrix’ is null.
Translate(السفينة، السفينة)
تخصيص إحداثيات هذا Aspose.Imaging.Region بالمبلغ المحدد.
public void Translate(float dx, float dy)
Parameters
dx
float
المبلغ لتعويض هذا Aspose.Imaging.Region أفقيا.
dy
float
المبلغ لتعويض هذا Aspose.Imaging.Region عموديا.
Translate(إنت، إنت)
تخصيص إحداثيات هذا Aspose.Imaging.Region بالمبلغ المحدد.
public void Translate(int dx, int dy)
Parameters
dx
int
المبلغ لتعويض هذا Aspose.Imaging.Region أفقيا.
dy
int
المبلغ لتعويض هذا Aspose.Imaging.Region عموديا.
Union(RectangleF)
تحديث هذا Aspose.Imaging.Region إلى اتحاد نفسه والهيكل المحدد Aspose.Imaging.RectangleF.
public void Union(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF لتوحيد هذا Aspose.Imaging.Region.
Union(Rectangle)
تحديث هذا Aspose.Imaging.Region إلى اتحاد نفسه والهيكل المحدد Aspose.Imaging.Rectangle.
public void Union(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle للاتصال بهذه Aspose.Imaging.Region.
Union(GraphicsPath)
تحديث هذا Aspose.Imaging.Region إلى اتحاد نفسه و Aspose.Imaging.GraphicsPath المحدد.
public void Union(GraphicsPath path)
Parameters
path
GraphicsPath
The Aspose.Imaging.GraphicsPath للاتصال بهذه Aspose.Imaging.Region.
Exceptions
path’ is null.
Union(Region)
تحديث هذا Aspose.Imaging.Region إلى الاتحاد نفسه والمنطقة المحددة Aspose.Imaging.Region.
public void Union(Region region)
Parameters
region
Region
انضم إلى Aspose.Imaging.Region لتوحيد هذا Aspose.Imaging.Region.
Exceptions
region’ is null.
Xor(RectangleF)
تحديث هذا Aspose.Imaging.Region إلى الاتحاد يقلل من تقاطع نفسه مع الهيكل المحدد Aspose.Imaging.RectangleF.
public void Xor(RectangleF rect)
Parameters
rect
RectangleF
هيكل Aspose.Imaging.RectangleF لتناسب مع هذا Aspose.Imaging.Region.
Xor(Rectangle)
تحديث هذا Aspose.Imaging.Region إلى الاتحاد يقلل من تقاطع نفسه مع الهيكل المحدد Aspose.Imaging.Rectangle.
public void Xor(Rectangle rect)
Parameters
rect
Rectangle
هيكل Aspose.Imaging.Rectangle إلى xor مع هذا Aspose.Imaging.Region.
Xor(GraphicsPath)
تحديث هذا Aspose.Imaging.Region إلى الاتحاد يقلل من تقاطع نفسه مع Aspose.Imaging.GraphicsPath المحدد.
public void Xor(GraphicsPath path)
Parameters
path
GraphicsPath
The Aspose.Imaging.GraphicsPath to xor with this Aspose.Imaging.Region.
Exceptions
path’ is null.
Xor(Region)
تحديث هذا Aspose.Imaging.Region إلى الاتحاد يقلل من تقاطع نفسه مع Aspose.Imaging.Region المحدد.
public void Xor(Region region)
Parameters
region
Region
The Aspose.Imaging.Region إلى xor مع هذا Aspose.Imaging.Region.
Exceptions
region’ is null.