C#读写Image

 

Graphics.DrawImage 方法:

http://msdn.microsoft.com/zh-cn/library/system.drawing.graphics.drawimage.aspx

 

代码示例:指定位置,指定大小 DrawImage

// Draw backgroud Image

 

Image newImage = Image.FromFile("d:\\bgshowjp.jpg");

 

  

Rectangle rtImage = new Rectangle(0, 31, this.Width - 2, this.Height - 44);

g.DrawImage(newImage, rtImage);

 

Draw

posted @ 2010-08-04 15:26  太古月石  阅读(805)  评论(0编辑  收藏  举报