2
我畫使用Graphics
一個矩形:禁用Graphics.FillRectangle的抗鋸齒功能?
// x and y are arbitrary integers or floats. Doesn't matter!
Graphics.FillRectangle(Brushes.Black, x, y, 5, 5);
這將產生一個黑色的矩形與抗鋸齒邊界。 如何在繪製矩形時禁用抗鋸齒功能?
下不起作用:
Graphics.SmoothingMode = SmoothingMode.HighSpeed;
Graphics.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit;