【发布时间】:2018-11-07 12:35:39
【问题描述】:
我想在指定的Bitmap 上绘制一个带有DrawEllipse 的圆,与位图的大小相同,但结果是圆在边缘处出现了剪裁。
为什么会出现这个问题?
Bitmap layer = new Bitmap(80, 80);
using (Graphics g = Graphics.FromImage(layer))
{
using (Pen p = new Pen(Color.Black, 4))
{
g.DrawEllipse(p, new Rectangle(0, 0, layer.Width, layer.Height));
}
}
pictureBox3.Size = new Size(100, 100);
pictureBox3.Image = layer;
【问题讨论】:
标签: c# winforms graphics bitmap drawellipse