Class CustomLineCap
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.2.0)
ห่อหุ้มหัวเส้นที่กำหนดโดยผู้ใช้แบบกำหนดเอง
public class CustomLineCap
การสืบทอด
สมาชิกที่สืบทอด
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
ตัวสร้าง
CustomLineCap(GraphicsPath, GraphicsPath)
เริ่มต้นอินสแตนซ์ใหม่ของคลาส Aspose.Imaging.CustomLineCap ด้วยเส้นขอบและการเติมที่กำหนด
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
พารามิเตอร์
fillPath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดการเติมสำหรับหัวเส้นแบบกำหนดเอง
strokePath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดเส้นขอบของหัวเส้นแบบกำหนดเอง
CustomLineCap(GraphicsPath, GraphicsPath, LineCap)
เริ่มต้นอินสแตนซ์ใหม่ของคลาส Aspose.Imaging.CustomLineCap จากการกำหนดค่าของ Aspose.Imaging.LineCap ที่มีอยู่พร้อมเส้นขอบและการเติมที่กำหนด
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap)
พารามิเตอร์
fillPath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดการเติมสำหรับหัวเส้นแบบกำหนดเอง
strokePath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดเส้นขอบของหัวเส้นแบบกำหนดเอง
baseCap
LineCap
หัวเส้นที่ใช้ในการสร้างหัวเส้นแบบกำหนดเอง
CustomLineCap(GraphicsPath, GraphicsPath, LineCap, float)
เริ่มต้นอินสแตนซ์ใหม่ของคลาส Aspose.Imaging.CustomLineCap จากการกำหนดค่าของ Aspose.Imaging.LineCap ที่มีอยู่พร้อมเส้นขอบ, การเติม และการเว้นระยะ
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, LineCap baseCap, float baseInset)
พารามิเตอร์
fillPath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดการเติมสำหรับหัวเส้นแบบกำหนดเอง
strokePath
GraphicsPath
อ็อบเจ็กต์ Aspose.Imaging.GraphicsPath ที่กำหนดเส้นขอบของหัวเส้นแบบกำหนดเอง
baseCap
LineCap
หัวเส้นที่ใช้ในการสร้างหัวเส้นแบบกำหนดเอง
baseInset
float
ระยะห่างระหว่างหัวเส้นและเส้น
คุณสมบัติ
BaseCap
รับหรือกำหนด Aspose.Imaging.LineCap enumeration ที่เป็นพื้นฐานของ Aspose.Imaging.CustomLineCap นี้
public LineCap BaseCap { get; set; }
ค่าคุณสมบัติ
BaseInset
รับหรือกำหนดระยะห่างระหว่างหัวเส้นและเส้น
public float BaseInset { get; set; }
ค่าคุณสมบัติ
FillPath
รับหรือกำหนดอ็อบเจ็กต์ที่กำหนดการเติมสำหรับหัวเส้นแบบกำหนดเอง
public GraphicsPath FillPath { get; set; }
ค่าคุณสมบัติ
StrokeJoin
รับหรือกำหนด Aspose.Imaging.LineJoin enumeration ที่กำหนดวิธีการเชื่อมต่อเส้นที่ประกอบขึ้นเป็นอ็อบเจ็กต์ Aspose.Imaging.CustomLineCap นี้
public LineJoin StrokeJoin { get; set; }
ค่าคุณสมบัติ
StrokePath
รับหรือกำหนดอ็อบเจ็กต์ที่กำหนดเส้นขอบของหัวเส้นแบบกำหนดเอง
public GraphicsPath StrokePath { get; set; }
ค่าคุณสมบัติ
WidthScale
รับหรือกำหนดจำนวนที่ใช้ในการปรับขนาดอ็อบเจ็กต์คลาส Aspose.Imaging.CustomLineCap นี้ตามความกว้างของอ็อบเจ็กต์ System.Drawing.Pen
public float WidthScale { get; set; }
ค่าคุณสมบัติ
วิธีการ
Equals(object)
ตรวจสอบว่าคุณวัตถุมีค่าเท่ากันหรือไม่
public override bool Equals(object obj)
พารามิเตอร์
obj
object
วัตถุอื่น
คืนค่า
ผลลัพธ์การเปรียบเทียบความเท่าเทียมกัน
Equals(CustomLineCap)
ตรวจสอบว่าคุณวัตถุมีค่าเท่ากันหรือไม่
protected bool Equals(CustomLineCap other)
พารามิเตอร์
other
CustomLineCap
วัตถุอื่น
คืนค่า
ผลลัพธ์การเปรียบเทียบความเท่าเทียมกัน
GetHashCode()
รับรหัสแฮชของวัตถุปัจจุบัน
public override int GetHashCode()
คืนค่า
รหัสแฮช
GetStrokeCaps(out LineCap, out LineCap)
รับหัวเส้นที่ใช้ในการเริ่มต้นและสิ้นสุดเส้นที่ประกอบขึ้นเป็นหัวเส้นแบบกำหนดนี้
public void GetStrokeCaps(out LineCap startCap, out LineCap endCap)
พารามิเตอร์
startCap
LineCap
Aspose.Imaging.LineCap enumeration ที่ใช้ที่จุดเริ่มต้นของเส้นภายในหัวเส้นนี้
endCap
LineCap
Aspose.Imaging.LineCap enumeration ที่ใช้ที่จุดสิ้นสุดของเส้นภายในหัวเส้นนี้
SetStrokeCaps(LineCap, LineCap)
ตั้งค่าหัวเส้นที่ใช้ในการเริ่มต้นและสิ้นสุดเส้นที่ประกอบขึ้นเป็นหัวเส้นแบบกำหนดนี้
public void SetStrokeCaps(LineCap startCap, LineCap endCap)
พารามิเตอร์
startCap
LineCap
Aspose.Imaging.LineCap enumeration ที่ใช้ที่จุดเริ่มต้นของเส้นภายในหัวเส้นนี้
endCap
LineCap
Aspose.Imaging.LineCap enumeration ที่ใช้ที่จุดสิ้นสุดของเส้นภายในหัวเส้นนี้