PathGradientBrushBase

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.Brush, com.aspose.imaging.brushes.TransformBrush

public abstract class PathGradientBrushBase extends TransformBrush

يمثل Brush بوظيفة تدرج مسار أساسي.

لاحظ أنه عند إنشاء الفئة PathGradientBrushBase يجب تهيئتها بما لا يقل عن نقطتين. المسار الداخلي المُنشأ سيكون دائمًا شكلًا مغلقًا، حيث تربط النقطة الأخيرة النقطة الأولى. يُملأ ذلك الشكل باستخدام هذا PathGradientBrushBase. تنفّذ GDI+ استثناء OutOfMemoryError عند تمرير مصفوفات فارغة أو مجموعة نقاط ذات إحداثيات متماثلة. ترمي الفئة PathGradientBrushBase استثناءً عندما تحتوي مصفوفة النقاط على أقل من نقطتين، ويتم إلقاء ArgumentException بدلاً من OutOfMemoryError عندما تكون مصفوفة النقاط غير مقبولة. يُحسب نقطة المركز كقُرص مركز للنتائج الممررة افتراضيًا. يمكن للمستخدم تغيير هذه النقطة لاحقًا. مقاييس التركيز هي نقطة فارغة (0.0, 0.0) افتراضيًا.

الطرق

طريقةالوصف
getPathPoints()يحصل على نقاط المسار التي بُنيت عليها هذه الفرشاة.
getGraphicsPath()يحصل على مسار الرسومات الذي بُنيت عليه هذه الفرشاة.
getCenterPoint()يحصل أو يضبط نقطة المركز لتدرج المسار.
setCenterPoint(PointF value)يحصل أو يضبط نقطة المركز لتدرج المسار.
getFocusScales()يحصل على نقطة التركيز لتلاشي التدرج.
setFocusScales(PointF value)يحصل أو يضبط نقطة التركيز لتلاشي التدرج.

getPathPoints()

public PointF[] getPathPoints()

يحصل على نقاط المسار التي بُنيت عليها هذه الفرشاة.

Returns: com.aspose.imaging.PointF[] - نقاط المسار.

getGraphicsPath()

public GraphicsPath getGraphicsPath()

يحصل على مسار الرسومات الذي بُنيت عليه هذه الفرشاة.

Returns: GraphicsPath - The graphics path.

getCenterPoint()

public PointF getCenterPoint()

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

Returns: PointF - A Aspose.Imaging.PointF that represents the center point of the path gradient.

setCenterPoint(PointF value)

public void setCenterPoint(PointF value)

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

Parameters:

معاملنوعالوصف
valuePointFAspose.Imaging.PointF يحدد نقطة المركز لتدرج المسار.

getFocusScales()

public PointF getFocusScales()

يحصل على نقطة التركيز لتلاشي التدرج.

Returns: PointF - A Aspose.Imaging.PointF that represents the focus point for the gradient falloff.

setFocusScales(PointF value)

public void setFocusScales(PointF value)

يحصل أو يضبط نقطة التركيز لتلاشي التدرج.

Parameters:

معاملنوعالوصف
valuePointFكائن Aspose.Imaging.PointF يمثل نقطة التركيز لتلاشي التدرج.