请问怎么用Picture来填充一个Rectangle..
Graphics g = Graphics.FromHwnd(this.pictureBox1.Handle);
Pen p = new Pen(Color.Red);
g.DrawRectangle(p,new Rectangle(10,10,100,100));
...全文
1942打赏收藏
用图形填充Rectangle
请问怎么用Picture来填充一个Rectangle.. Graphics g = Graphics.FromHwnd(this.pictureBox1.Handle); Pen p = new Pen(Color.Red); g.DrawRectangle(p,new Rectangle(10,10,100,100));