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


현재 객체가 나타내는 표면에 지정된 펜을 사용하여 지정된 사각형을 그립니다.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, float x, float y, float width, float height)
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 펜 | const SharedPtr\\<Pen\\>\\& | 사각형을 그릴 때 사용할 펜 |
| x | float | 그릴 사각형의 왼쪽 위 모서리 X 좌표 |
| y | float | 그릴 사각형의 왼쪽 위 모서리 Y 좌표 |
| width | float | 그릴 사각형의 너비 |
| height | float | 그릴 사각형의 높이 |

## 또 보기

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


현재 객체가 나타내는 표면에 지정된 펜을 사용하여 지정된 사각형을 그립니다.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, int x, int y, int width, int height)
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 펜 | const SharedPtr\\<Pen\\>\\& | 사각형을 그릴 때 사용할 펜 |
| x | int | 그릴 사각형의 왼쪽 위 모서리 X 좌표 |
| y | int | 그릴 사각형의 왼쪽 위 모서리 Y 좌표 |
| width | int | 그릴 사각형의 너비 |
| height | int | 그릴 사각형의 높이 |

## 또 보기

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


현재 객체가 나타내는 표면에 지정된 펜을 사용하여 지정된 사각형을 그립니다.

```cpp
void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, Rectangle rect)
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| 펜 | const SharedPtr\\<Pen\\>\\& | 사각형을 그릴 때 사용할 펜 |
| rect | Rectangle | [Rectangle](../../rectangle/) 객체로 그릴 사각형의 위치와 크기를 지정합니다. |

## 또 보기

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