Class PathGradientBrush

Class PathGradientBrush

ชื่อพื้นที่: Aspose.Imaging.Brushes การประกอบ: Aspose.Imaging.dll (25.4.0)

Encapsulates a Aspose.Imaging.Brush object with a gradient. หลักสูตรนี้ไม่สามารถเป็นพันธมิตรได้

[JsonObject(MemberSerialization.OptIn)]
public sealed class PathGradientBrush : PathGradientBrushBase, IDisposable

Inheritance

object DisposableObject Brush TransformBrush PathGradientBrushBase PathGradientBrush

Implements

IDisposable

อนุญาโตตุลาการ

PathGradientBrushBase.PathPoints , PathGradientBrushBase.GraphicsPath , PathGradientBrushBase.CenterPoint , PathGradientBrushBase.FocusScales , TransformBrush.ResetTransform() , TransformBrush.MultiplyTransform(Matrix) , TransformBrush.MultiplyTransform(Matrix, MatrixOrder) , TransformBrush.TranslateTransform(float, float) , TransformBrush.TranslateTransform(float, float, MatrixOrder) , TransformBrush.ScaleTransform(float, float) , TransformBrush.ScaleTransform(float, float, MatrixOrder) , TransformBrush.RotateTransform(float) , TransformBrush.RotateTransform(float, MatrixOrder) , TransformBrush.WrapMode , TransformBrush.Transform , TransformBrush.IsTransformChanged , Brush.DeepClone() , Brush.Equals(object) , Brush.GetHashCode() , Brush.Opacity , DisposableObject.Dispose() , DisposableObject.Disposed , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

สีกลางเป็นสีขาวโดยเริ่มต้น ผู้ใช้สามารถเปลี่ยนค่านี้ในเวลาใด ๆ จากนั้น

ชุดสีรอบตัวจะเริ่มต้นโดยองค์ประกอบเดียวที่มีสีขาวโดยเริ่มต้น สีรอบตัวอาจมีการเปลี่ยนแปลงในภายหลัง แต่องค์ประกอบเดียวอย่างน้อยจะจําเป็นเมื่อกําหนดสีรอบตัว

ดู Aspose.Imaging.Brushes.PathGradientBrush.Blend สําหรับรายละเอียดเพิ่มเติมเกี่ยวกับการเริ่มต้น

Constructors

PathGradientBrush(จุดหมายเลข[])

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Imaging.Brushes.PathGradientBrush ด้วยจุดที่ระบุ

public PathGradientBrush(PointF[] pathPoints)

Parameters

pathPoints PointF [ ]

ชุดของโครงสร้าง Aspose.Imaging.PointF ซึ่งแสดงให้เห็นถึงจุดที่ประกอบด้วยแนวตั้งของเส้นทาง

PathGradientBrush(จุดหมายเลข[ ], WrapMode)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Imaging.Brushes.PathGradientBrush ด้วยจุดที่ระบุและโหมดลวด

public PathGradientBrush(PointF[] pathPoints, WrapMode wrapMode)

Parameters

pathPoints PointF [ ]

ชุดของโครงสร้าง Aspose.Imaging.PointF ซึ่งแสดงให้เห็นถึงจุดที่ประกอบด้วยแนวตั้งของเส้นทาง

wrapMode WrapMode

A Aspose.Imaging.WrapMode ซึ่งระบุวิธีการบรรจุที่ถูกดึงด้วย Aspose.Imaging.Brushes.PathGradientBrush นี้จะถูกดึง

PathGradientBrush(Point[])

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Imaging.Brushes.PathGradientBrush ด้วยจุดที่ระบุ

public PathGradientBrush(Point[] pathPoints)

Parameters

pathPoints Point [ ]

ชุดของโครงสร้าง Aspose.Imaging.Point ซึ่งแสดงถึงจุดที่ประกอบด้วยแนวตั้งของเส้นทาง

PathGradientBrush(Point[ ], WrapMode)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Imaging.Brushes.PathGradientBrush ด้วยจุดที่ระบุและโหมดลวด

public PathGradientBrush(Point[] pathPoints, WrapMode wrapMode)

Parameters

pathPoints Point [ ]

ชุดของโครงสร้าง Aspose.Imaging.Point ซึ่งแสดงถึงจุดที่ประกอบด้วยแนวตั้งของเส้นทาง

wrapMode WrapMode

A Aspose.Imaging.WrapMode ซึ่งระบุวิธีการบรรจุที่ถูกดึงด้วย Aspose.Imaging.Brushes.PathGradientBrush นี้จะถูกดึง

PathGradientBrush(GraphicsPath)

เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Imaging.Brushes.PathGradientBrush ด้วยเส้นทางที่ระบุ

public PathGradientBrush(GraphicsPath path)

Parameters

path GraphicsPath

Aspose.Imaging.GraphicsPath ซึ่งกําหนดพื้นที่ที่เต็มไปด้วย Aspose.Imaging.Brushes.PathGradientBrush

Properties

Blend

ได้รับหรือตั้งค่า Aspose.Imaging.Blend ซึ่งระบุตําแหน่งและปัจจัยที่กําหนดค่า falloff ที่กําหนดเองสําหรับ gradient

public Blend Blend { get; set; }

คุณสมบัติมูลค่า

Blend

CenterColor

รับหรือวางสีในใจกลางของเส้นทาง gradient

public Color CenterColor { get; set; }

คุณสมบัติมูลค่า

Color

InterpolationColors

ได้รับหรือตั้งค่า Aspose.Imaging.ColorBlend ซึ่งกําหนด gradient เส้นด้ายหลายสี

[Obsolete("This property is not used in this class anymore. Use PathMulticolorGradientBrush class instead.")]
[JsonIgnore]
public ColorBlend InterpolationColors { get; set; }

คุณสมบัติมูลค่า

ColorBlend

SurroundColors

ได้รับหรือตั้งค่าชุดของสีที่ตรงกับจุดในเส้นทางนี้ Aspose.Imaging.Brushes.PathGradientBrush เต็ม

public Color[] SurroundColors { get; set; }

คุณสมบัติมูลค่า

Color [ ]

Methods

SetBlendTriangularShape(เฟอร์รี่)

สร้าง gradient ที่มีสีกลางและ falloff linear ไปยังสีรอบ ๆ

public void SetBlendTriangularShape(float focus)

Parameters

focus float

หมายเลขจาก 0 ถึง 1 ซึ่งระบุที่ใด ๆ ระยะไกลจากศูนย์ของเส้นทางไปยังขอบเส้นทางสีกลางจะอยู่ในความเข้มสูงสุด หมายเลข 1 (ค่าเริ่มต้น) จะวางความเข้มสูงสุดในศูนย์ของเส้นทาง

SetBlendTriangularShape(เฟอร์รี่, เฟอร์รี่)

สร้าง gradient ที่มีสีกลางและ falloff linear สําหรับแต่ละสีรอบ ๆ

public void SetBlendTriangularShape(float focus, float scale)

Parameters

focus float

หมายเลขจาก 0 ถึง 1 ซึ่งระบุที่ใด ๆ ระยะไกลจากศูนย์ของเส้นทางไปยังขอบเส้นทางสีกลางจะอยู่ในความเข้มสูงสุด หมายเลข 1 (ค่าเริ่มต้น) จะวางความเข้มสูงสุดในศูนย์ของเส้นทาง

scale float

คะแนนจาก 0 ถึง 1 ซึ่งระบุความเข้มสูงสุดของสีกลางที่ผสมผสานกับสี จํากัด คะแนนของ 1 ทําให้ความเข้มสูงสุดของสีกลางเป็นไปได้และเป็นค่าเริ่มต้น

SetSigmaBellShape(เฟอร์รี่)

สร้างแปรง gradient ซึ่งเปลี่ยนสีตั้งแต่ศูนย์ของเส้นทางไปข้างนอกไปจนถึงขอบของเส้นทาง การเปลี่ยนแปลงจากสีหนึ่งไปยังสีอื่นขึ้นอยู่กับรูปร่างโทร

public void SetSigmaBellShape(float focus)

Parameters

focus float

หมายเลขจาก 0 ถึง 1 ซึ่งระบุที่ใด ๆ ระยะไกลจากศูนย์ของเส้นทางไปยังขอบเส้นทางสีกลางจะอยู่ในความเข้มสูงสุด หมายเลข 1 (ค่าเริ่มต้น) จะวางความเข้มสูงสุดในศูนย์ของเส้นทาง

SetSigmaBellShape(เฟอร์รี่, เฟอร์รี่)

สร้างแปรง gradient ซึ่งเปลี่ยนสีตั้งแต่ศูนย์ของเส้นทางไปข้างนอกไปจนถึงขอบของเส้นทาง การเปลี่ยนแปลงจากสีหนึ่งไปยังสีอื่นขึ้นอยู่กับรูปร่างโทร

public void SetSigmaBellShape(float focus, float scale)

Parameters

focus float

หมายเลขจาก 0 ถึง 1 ซึ่งระบุที่ใด ๆ ระยะไกลจากศูนย์ของเส้นทางไปยังขอบเส้นทางสีกลางจะอยู่ในความเข้มสูงสุด หมายเลข 1 (ค่าเริ่มต้น) จะวางความเข้มสูงสุดในศูนย์ของเส้นทาง

scale float

คะแนนจาก 0 ถึง 1 ซึ่งระบุความเข้มสูงสุดของสีกลางที่ผสมผสานกับสี จํากัด คะแนนของ 1 ทําให้ความเข้มสูงสุดของสีกลางเป็นไปได้และเป็นค่าเริ่มต้น

 แบบไทย