
**Summary:** Encapsulates a custom user-defined line cap.

**Module:** [aspose.imaging](/imaging/python-net/aspose.imaging/)

**Full Name:** aspose.imaging.CustomLineCap

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [CustomLineCap(fill_path, stroke_path)](#CustomLineCap_fill_path_stroke_path_1) | Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class with the specified outline and fill. |
| [CustomLineCap(fill_path, stroke_path, base_cap)](#CustomLineCap_fill_path_stroke_path_base_cap_2) | Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class from the specified existing [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration with the specified outline and fill. |
| [CustomLineCap(fill_path, stroke_path, base_cap, base_inset)](#CustomLineCap_fill_path_stroke_path_base_cap_base_inset_3) | Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class from the specified existing [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration with the specified outline, fill, and inset. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| base_cap | [LineCap](/imaging/python-net/aspose.imaging/linecap/) | r/w | Gets or sets the [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration on which this [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) is based. |
| base_inset | float | r/w | Gets or sets the distance between the cap and the line. |
| fill_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | r/w | Gets or sets the object that defines the fill for the custom cap. |
| stroke_join | [LineJoin](/imaging/python-net/aspose.imaging/linejoin/) | r/w | Gets or sets the [LineJoin](/imaging/python-net/aspose.imaging/linejoin/) enumeration that determines how lines that compose this [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) object are joined. |
| stroke_path | [GraphicsPath](/imaging/python-net/aspose.imaging/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](/imaging/python-net/aspose.imaging/customlinecap/) Class object with respect to the width of the  object. |
## **Methods**
| **Name** | **Description** |
| :- | :- |
| [get_stroke_caps(start_cap, end_cap)](#get_stroke_caps_start_cap_end_cap_1) | Gets the caps used to start and end lines that make up this custom cap. |
| [set_stroke_caps(start_cap, end_cap)](#set_stroke_caps_start_cap_end_cap_2) | 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_1}


```
 CustomLineCap(fill_path, stroke_path) 
```

Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class with the specified outline and fill.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| fill_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) object that defines the fill for the custom cap. |
| stroke_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/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_2}


```
 CustomLineCap(fill_path, stroke_path, base_cap) 
```

Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class from the specified existing [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration with the specified outline and fill.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| fill_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) object that defines the fill for the custom cap. |
| stroke_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) object that defines the outline of the custom cap. |
| base_cap | [LineCap](/imaging/python-net/aspose.imaging/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_3}


```
 CustomLineCap(fill_path, stroke_path, base_cap, base_inset) 
```

Initializes a new instance of the [CustomLineCap](/imaging/python-net/aspose.imaging/customlinecap/) class from the specified existing [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration with the specified outline, fill, and inset.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| fill_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) object that defines the fill for the custom cap. |
| stroke_path | [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) | A [GraphicsPath](/imaging/python-net/aspose.imaging/graphicspath/) object that defines the outline of the custom cap. |
| base_cap | [LineCap](/imaging/python-net/aspose.imaging/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_1}


```
 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[]](/imaging/python-net/aspose.imaging/linecap/) | The [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration used at the beginning of a line within this cap. |
| end_cap | [LineCap[]](/imaging/python-net/aspose.imaging/linecap/) | The [LineCap](/imaging/python-net/aspose.imaging/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_2}


```
 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](/imaging/python-net/aspose.imaging/linecap/) | The [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration used at the beginning of a line within this cap. |
| end_cap | [LineCap](/imaging/python-net/aspose.imaging/linecap/) | The [LineCap](/imaging/python-net/aspose.imaging/linecap/) enumeration used at the end of a line within this cap. |

