GDI+绘制旋转的椭圆

GDI+绘制椭圆时只支持输入一个矩形范围,无法绘制倾斜的椭圆。 绘制椭圆的 API: csharp ▼ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 // 摘要: 绘制边界 System.Drawing.RectangleF 定义的椭圆。 // 参数: // pen: System.Drawing.Pen,它确定曲线的颜色、宽度和样式。 // rect: System.Drawing.RectangleF 结构,它定义椭圆的边界。 // 异常: // T:System.ArgumentNullException: pen 为 null。 public void DrawEllipse(Pen pen, RectangleF rect); // // 摘要: 绘制一个由边框(该边框由一对坐标、高度和宽度指定)定义的椭圆。 // 参数: // pen: System.Drawing.Pen,它确定曲线的颜色、宽度和样式。 // x: 定义椭圆的边框的左上角的 X 坐标。 // y: 定义椭圆的边框的左上角的 Y 坐标。 // width: 定义椭圆的边框的宽度。 // height: 定义椭圆的边框的高度。 // 异常: // T:System.ArgumentNullException: pen 为 null。 public void DrawEllipse(Pen pen, float x, float y, float width, float height); // // 摘要: 绘制边界 System.Drawing.Rectangle 结构指定的椭圆。 // 参数: // pen: System.Drawing.Pen,它确定曲线的颜色、宽度和样式。 // rect: System.Drawing.Rectangle 结构,它定义椭圆的边界。 // 异常: // T:System.ArgumentNullException: pen 为 null。 public void DrawEllipse(Pen pen, Rectangle rect); // // 摘要: 绘制一个由边框定义的椭圆,该边框由矩形的左上角坐标、高度和宽度指定。 // 参数: // pen: System.Drawing.Pen,它确定曲线的颜色、宽度和样式。 // x: 定义椭圆的边框的左上角的 X 坐标。 // y: 定义椭圆的边框的左上角的 Y 坐标。 // width: 定义椭圆的边框的宽度。 // height: 定义椭圆的边框的高度。 // 异常: // T:System.ArgumentNullException: pen 为 null。 public void DrawEllipse(Pen pen, int x, int y, int width, int height); 可以看到,绘制椭圆的API,都只支持输入一个矩形区域,长和宽都只能是水平或者竖直的,因此,绘制出椭圆的长轴和短轴也是水平或竖直的,而无法绘制一个旋转过的椭圆,如下图: ...

一月 21, 2021 · 3 分钟 · 1435 字

Private Dicom Element

规则 私有 Tag (gggg, xxxx) Group number (gggg) 必须为奇数 (odd),并且 (0001, xxxx),(0003, xxxx),(0005, xxxx),(0007, xxxx),(FFFF, xxxx) 不允许使用。 ...

一月 21, 2021 · 1 分钟 · 298 字