Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这段代码可以在 256z256 图片框上绘制一个矩形,但是,我没有看到整个矩形,我只看到它的一半.. 它可能是什么?
e.Graphics.DrawRectangle(mypen,0,0,256,256);
也许它是从中心画出来的?尝试
Rectangle m_rectangle = new Rectangle(0, 0, 512, 512); e.Graphics.DrawRectangle(mypen,m_rectangle);
只是在黑暗中刺伤。