I have this code to draw a rectangle on a 256z256 picturebox, however, I don't see the whole rectangle, I only see half of it.. what it might be?
我有这个代码在256z256图片框上绘制一个矩形,但是,我没有看到整个矩形,我只看到它的一半..它可能是什么?
e.Graphics.DrawRectangle(mypen,0,0,256,256);
1 个解决方案
#1
0
Maybe it draws it from the center? Try
也许它从中心吸引它?尝试
Rectangle m_rectangle = new Rectangle(0, 0, 512, 512);
e.Graphics.DrawRectangle(mypen,m_rectangle);
Just a stab in the dark.
只是在黑暗中刺伤。
#1
0
Maybe it draws it from the center? Try
也许它从中心吸引它?尝试
Rectangle m_rectangle = new Rectangle(0, 0, 512, 512);
e.Graphics.DrawRectangle(mypen,m_rectangle);
Just a stab in the dark.
只是在黑暗中刺伤。