我试图打开Windows窗体上的单个像素.
graphics.DrawLine(Pens.Black, 50, 50, 51, 50); // draws two pixels graphics.DrawLine(Pens.Black, 50, 50, 50, 50); // draws no pixels
API真的应该有一个方法来设置一个像素的颜色,但我没有看到一个.
我正在使用C#.
.net c# gdi+ pixel winforms
.net ×1
c# ×1
gdi+ ×1
pixel ×1
winforms ×1