GDI+ Drawing Rectangle Is Slow
问题 I've developed a Windows Forms Application to draw a rectangular region relevant to the user's mouse position as he or she clicks, holds and drags the mouse. The class is very simple and is as followed: public partial class MainForm : LayeredForm { private bool drawing = false; private Point startLocation = Point.Empty; public MainForm() { InitializeComponent(); Location = Screen.PrimaryScreen.Bounds.Location; Size = Screen.PrimaryScreen.Bounds.Size; Cursor = Cursors.Cross; TopMost = true;