## PsDocument::DrawLine method


绘制线段。

```cpp
void Aspose::Page::EPS::PsDocument::DrawLine(double x1, double y1, double x2, double y2)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| x1 | double | 线段起点的 X 坐标。 |
| y1 | double | 线段起点的 Y 坐标。 |
| x2 | double | 线段终点的 X 坐标。 |
| y2 | double | 线段终点的 Y 坐标。 |

## 另见

* Class [PsDocument](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
