我有問題,C#路徑中的半圓形矩形
我有圓角矩形。它只在右側圓角,並在左側直行。我想以其他方式製作 - 左轉,右轉。 我應該改變什麼?
int ArcWidth = 10 * 2;
int ArcHeight = 10 * 2;
int ArcX1 = Rect.Left;
int ArcX2 = Rect.Right -(ArcWidth + 1);
int ArcY1 = Rect.Top;
int ArcY2 = Rect.Bottom -(ArcHeight + 1);
path.AddArc(ArcX1, ArcY1, 1, 1, 180, 90); // Top Left
path.AddArc(ArcX2, ArcY1, ArcWidth, ArcHeight, 270, 90); //Top Right
path.AddArc(ArcX2, ArcY2, ArcWidth, ArcHeight, 360, 90); //Bottom Right
path.AddArc(ArcX1, ArcY2, 1, ArcHeight, 90, 90); //Bottom Left
他使用的WinForms – plast1K 2013-03-21 14:46:43
他使用的WinForms,雖然 – 2013-03-21 14:46:48
是的,我使用WinForms。 – boski 2013-03-21 15:31:39