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:

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