
**Summary:** Represents a segment leading derectly from a specific point to the next point.

**Module:** [aspose.imaging.shapesegments](/imaging/python-net/aspose.imaging.shapesegments/)

**Full Name:** aspose.imaging.shapesegments.LineSegment

**Inheritance:** ShapeSegment

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [LineSegment(start_point, end_point)](#LineSegment_start_point_end_point_1) | Initializes a new instance of the [LineSegment](/imaging/python-net/aspose.imaging.shapesegments/linesegment/) class. |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| end_point | [PointF](/imaging/python-net/aspose.imaging/pointf/) | r | Gets the ending point. |
| start_point | [PointF](/imaging/python-net/aspose.imaging/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](/imaging/python-net/aspose.imaging.shapesegments/linesegment/) class.

**Parameters:**

| Parameter | Type | Description |
| :- | :- | :- |
| start_point | [PointF](/imaging/python-net/aspose.imaging/pointf/) | The start point. |
| end_point | [PointF](/imaging/python-net/aspose.imaging/pointf/) | The end point. |

