Share via


ActivityDesignerPaint.GetRoundedRectanglePath(Rectangle, Int32) 메서드

정의

지정된 모퉁이가 둥근 사각형을 그리는 데 사용되는 그래픽 경로를 반환합니다.

public:
 static System::Drawing::Drawing2D::GraphicsPath ^ GetRoundedRectanglePath(System::Drawing::Rectangle rectangle, int radius);
public static System.Drawing.Drawing2D.GraphicsPath GetRoundedRectanglePath (System.Drawing.Rectangle rectangle, int radius);
static member GetRoundedRectanglePath : System.Drawing.Rectangle * int -> System.Drawing.Drawing2D.GraphicsPath
Public Shared Function GetRoundedRectanglePath (rectangle As Rectangle, radius As Integer) As GraphicsPath

매개 변수

rectangle
Rectangle

그래픽 경로를 가져올 Rectangle입니다.

radius
Int32

둥근 모퉁이를 그리는 데 사용할 반지름을 정의하는 정수입니다.

반환

GraphicsPath

지정된 사각형의 둥근 경로를 그리는 GraphicsPath입니다.

예외

rectangleIsEmpty로 설정됩니다.

또는 radius가 0보다 작거나 같은 경우

설명

DrawRoundedRectangle 메서드는 GetRoundedRectanglePath를 사용하여 그릴 경로를 가져옵니다.

적용 대상