방법: 펜 만들기

이 예제에서는 Pen 개체를 만듭니다.

예제

Dim myPen As System.Drawing.Pen
myPen = New System.Drawing.Pen(System.Drawing.Color.Tomato)
System.Drawing.Pen myPen;
myPen = new System.Drawing.Pen(System.Drawing.Color.Tomato);
System::Drawing::Pen^ myPen;
myPen = gcnew System::Drawing::Pen(System::Drawing::Color::Tomato);

강력한 프로그래밍

Pen 개체와 같이 시스템 리소스를 소모하는 개체의 사용이 끝나면 해당 개체에 대해 Dispose를 호출해야 합니다.

참고 항목

참조

Pen

개념

GDI+의 펜, 선 및 사각형

기타 리소스

그래픽 프로그래밍 시작