## Graphics::DrawLine(const SharedPtr\<Pen\>\&, float, float, float, float) method


指定されたペンを使用して指定された直線を描画します。

```cpp
void System::Drawing::Graphics::DrawLine(const SharedPtr<Pen> &pen, float x1, float y1, float x2, float y2)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 描画する線のグラフィック属性を指定する [Pen](../../pen/) オブジェクト |
| x1 | 単精度浮動小数点数 | 描画する線を定義する最初の点の X 座標 |
| y1 | 単精度浮動小数点数 | 描画する線を定義する最初の点の Y 座標 |
| x2 | 単精度浮動小数点数 | 描画する線を定義する2番目の点の X 座標 |
| y2 | 単精度浮動小数点数 | 描画する直線を定義する2番目の点のY座標 |

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawLine(const SharedPtr\<Pen\>\&, int, int, int, int) method


指定されたペンを使用して指定された直線を描画します。

```cpp
void System::Drawing::Graphics::DrawLine(const SharedPtr<Pen> &pen, int x1, int y1, int x2, int y2)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 描画する線のグラフィック属性を指定する [Pen](../../pen/) オブジェクト |
| x1 | int | 描画する線を定義する最初の点の X 座標 |
| y1 | int | 描画する線を定義する最初の点の Y 座標 |
| x2 | int | 描画する線を定義する2番目の点の X 座標 |
| y2 | int | 描画する直線を定義する2番目の点のY座標 |

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawLine(const SharedPtr\<Pen\>\&, Point, Point) method


指定されたペンを使用して指定された直線を描画します。

```cpp
void System::Drawing::Graphics::DrawLine(const SharedPtr<Pen> &pen, Point pt1, Point pt2)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 描画する線のグラフィック属性を指定する [Pen](../../pen/) オブジェクト |
| pt1 | Point | 描画する直線を定義する最初の点 |
| pt2 | Point | 描画する直線を定義する2番目の点 |

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Point](../../point/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawLine(const SharedPtr\<Pen\>\&, PointF, PointF) method


指定されたペンを使用して指定された直線を描画します。

```cpp
void System::Drawing::Graphics::DrawLine(const SharedPtr<Pen> &pen, PointF pt1, PointF pt2)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 描画する線のグラフィック属性を指定する [Pen](../../pen/) オブジェクト |
| pt1 | PointF | 描画する直線を定義する最初の点 |
| pt2 | PointF | 描画する直線を定義する2番目の点 |

## 参照

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [PointF](../../pointf/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
