例如,
Graphics.FillRectangle (),其中一种重载参数是
public void FillRectangle (
Brush brush,
int x,
int y,
int width,
int height
)
但我始终画不出东西来。后来才发现,我把x,y搞错了,这2个坐标是相对于this的坐标,
而不是计算机屏幕或者windows桌面的坐标,一般要填充直接写
(new SolidBrush(mycolor),0,0,this.Width,this.Height)
发表于 @ 2006年11月21日 10:22:00|评论(loading...)|编辑