
**Summary:** Represents a segment leading derectly from a specific point to the next point.

**Module:** [aspose.psd.shapesegments](/psd/python-net/aspose.psd.shapesegments/)

**Full Name:** aspose.psd.shapesegments.LineSegment

**Inheritance:** ShapeSegment

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [LineSegment(start_point, end_point)](#LineSegment_start_point_end_point_1) | Initializes a new instance of the [LineSegment](/psd/python-net/aspose.psd.shapesegments/linesegment/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| end_point | [PointF](/psd/python-net/aspose.psd/pointf) | r | Gets the ending point. |
| start_point | [PointF](/psd/python-net/aspose.psd/pointf) | r | Gets the starting point. |


### Constructor: LineSegment(start_point, end_point) {#LineSegment_start_point_end_point_1}


```
 LineSegment(start_point, end_point) 
```

Initializes a new instance of the [LineSegment](/psd/python-net/aspose.psd.shapesegments/linesegment/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| start_point | [PointF](/psd/python-net/aspose.psd/pointf) | The start point. |
| end_point | [PointF](/psd/python-net/aspose.psd/pointf) | The end point. |

