CustomLineCap Class

Summary: Encapsulates a custom user-defined line cap.

Module: aspose.imaging

Full Name: aspose.imaging.CustomLineCap

Aspose.Imaging Version: 24.6.0

Constructors

NameDescription
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

NameTypeAccessDescription
base_capLineCapr/wGets or sets the LineCap enumeration on which this CustomLineCap is based.
base_insetfloatr/wGets or sets the distance between the cap and the line.
fill_pathGraphicsPathr/wGets or sets the object that defines the fill for the custom cap.
stroke_joinLineJoinr/wGets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
stroke_pathGraphicsPathr/wGets or sets the object that defines the outline of the custom cap.
width_scalefloatr/wGets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the object.

Methods

NameDescription
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:

ParameterTypeDescription
fill_pathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
stroke_pathGraphicsPathA 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:

ParameterTypeDescription
fill_pathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
stroke_pathGraphicsPathA GraphicsPath object that defines the outline of the custom cap.
base_capLineCapThe 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:

ParameterTypeDescription
fill_pathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
stroke_pathGraphicsPathA GraphicsPath object that defines the outline of the custom cap.
base_capLineCapThe line cap from which to create the custom cap.
base_insetfloatThe 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:

ParameterTypeDescription
start_capLineCap[]The LineCap enumeration used at the beginning of a line within this cap.
end_capLineCap[]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:

ParameterTypeDescription
start_capLineCapThe LineCap enumeration used at the beginning of a line within this cap.
end_capLineCapThe LineCap enumeration used at the end of a line within this cap.