CustomLineCap Class
Contents
[
Hide
]Summary: Encapsulates a custom user-defined line cap.
Module: aspose.imaging
Full Name: aspose.imaging.CustomLineCap
Constructors
Name | Description |
---|---|
CustomLineCap(fill_path, stroke_path) | Initializes a new instance of the CustomLineCap class with the specified outline and fill. |
CustomLineCap(fill_path, stroke_path, base_cap) | Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill. |
CustomLineCap(fill_path, stroke_path, base_cap, base_inset) | Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset. |
Properties
Name | Type | Access | Description |
---|---|---|---|
base_cap | LineCap | r/w | Gets or sets the LineCap enumeration on which this CustomLineCap is based. |
base_inset | float | r/w | Gets or sets the distance between the cap and the line. |
fill_path | GraphicsPath | r/w | Gets or sets the object that defines the fill for the custom cap. |
stroke_join | LineJoin | r/w | Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined. |
stroke_path | GraphicsPath | r/w | Gets or sets the object that defines the outline of the custom cap. |
width_scale | float | r/w | Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the object. |
Methods
Name | Description |
---|---|
get_stroke_caps(start_cap, end_cap) | Gets the caps used to start and end lines that make up this custom cap. |
set_stroke_caps(start_cap, end_cap) | Sets the caps used to start and end lines that make up this custom cap. |
Constructor: CustomLineCap(fill_path, stroke_path)
CustomLineCap(fill_path, stroke_path)
Initializes a new instance of the CustomLineCap class with the specified outline and fill.
Parameters:
Parameter | Type | Description |
---|---|---|
fill_path | GraphicsPath | A GraphicsPath object that defines the fill for the custom cap. |
stroke_path | GraphicsPath | A GraphicsPath object that defines the outline of the custom cap. |
Constructor: CustomLineCap(fill_path, stroke_path, base_cap)
CustomLineCap(fill_path, stroke_path, base_cap)
Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill.
Parameters:
Parameter | Type | Description |
---|---|---|
fill_path | GraphicsPath | A GraphicsPath object that defines the fill for the custom cap. |
stroke_path | GraphicsPath | A GraphicsPath object that defines the outline of the custom cap. |
base_cap | LineCap | The line cap from which to create the custom cap. |
Constructor: CustomLineCap(fill_path, stroke_path, base_cap, base_inset)
CustomLineCap(fill_path, stroke_path, base_cap, base_inset)
Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset.
Parameters:
Parameter | Type | Description |
---|---|---|
fill_path | GraphicsPath | A GraphicsPath object that defines the fill for the custom cap. |
stroke_path | GraphicsPath | A GraphicsPath object that defines the outline of the custom cap. |
base_cap | LineCap | The line cap from which to create the custom cap. |
base_inset | float | The distance between the cap and the line. |
Method: get_stroke_caps(start_cap, end_cap)
get_stroke_caps(start_cap, end_cap)
Gets the caps used to start and end lines that make up this custom cap.
Parameters:
Parameter | Type | Description |
---|---|---|
start_cap | LineCap[] | The LineCap enumeration used at the beginning of a line within this cap. |
end_cap | LineCap[] | The LineCap enumeration used at the end of a line within this cap. |
Method: set_stroke_caps(start_cap, end_cap)
set_stroke_caps(start_cap, end_cap)
Sets the caps used to start and end lines that make up this custom cap.
Parameters:
Parameter | Type | Description |
---|---|---|
start_cap | LineCap | The LineCap enumeration used at the beginning of a line within this cap. |
end_cap | LineCap | The LineCap enumeration used at the end of a line within this cap. |