System::Drawing::Graphics::DrawRectangle 메서드

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

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

void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, float x, float y, float width, float height)
매개변수형식설명
const SharedPtr\<Pen\>\&사각형을 그릴 때 사용할 펜
xfloat그릴 사각형의 왼쪽 위 모서리 X 좌표
yfloat그릴 사각형의 왼쪽 위 모서리 Y 좌표
widthfloat그릴 사각형의 너비
heightfloat그릴 사각형의 높이

또 보기

Graphics::DrawRectangle(const SharedPtr<Pen>&, int, int, int, int) method

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

void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, int x, int y, int width, int height)
매개변수형식설명
const SharedPtr\<Pen\>\&사각형을 그릴 때 사용할 펜
xint그릴 사각형의 왼쪽 위 모서리 X 좌표
yint그릴 사각형의 왼쪽 위 모서리 Y 좌표
widthint그릴 사각형의 너비
heightint그릴 사각형의 높이

또 보기

Graphics::DrawRectangle(const SharedPtr<Pen>&, Rectangle) method

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

void System::Drawing::Graphics::DrawRectangle(const SharedPtr<Pen> &pen, Rectangle rect)
매개변수형식설명
const SharedPtr\<Pen\>\&사각형을 그릴 때 사용할 펜
rectRectangleRectangle 객체로 그릴 사각형의 위치와 크기를 지정합니다.

또 보기