首页 > Windows开发 > 详细

C# 解决DrawImage绘制图片拉伸产生渐变

时间:2016-11-01 09:40:37      阅读:507      评论:0      收藏:0      [点我收藏+]

ImageAttributes ImgAtt = new ImageAttributes(); ;
                ImgAtt.SetWrapMode(System.Drawing.Drawing2D.WrapMode.TileFlipXY);

 

m_graphics.DrawImage(image, new System.Drawing.Rectangle((int)(x - width / 2 + backBmp1.Width), (int)(y - pixel + 1), backBmp2.Width, backBmp2.Height), 0, 0, backImage2.Width, backImage2.Height, GraphicsUnit.Pixel,ImgAtt);

 

 TextureBrush Txbrus = new TextureBrush(image);
 Txbrus.WrapMode = System.Drawing.Drawing2D.WrapMode.Tile;
 g.FillRectangle(Txbrus, new Rectangle(0, 0, width, height));


转至:http://blog.sina.com.cn/s/blog_4b34850001010tpx.html

C# 解决DrawImage绘制图片拉伸产生渐变

原文:http://www.cnblogs.com/68tour/p/6018151.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!