[透明胶怎么去除]透明控件+去除邮票效果――>界面倍儿漂亮的Windows应用软件

更新时间:2015-04-24    来源:php应用    手机版     字体:

【www.bbyears.com--php应用】

ImageAttributes imageAttr = new ImageAttributes();
imageAttr.SetGamma(1.0F);   //指定 image 对象的重新着色和伽玛信息

pevent.Graphics.DrawImage(this.Parent.BackgroundImage, new Rectangle(0, 0, this.Width, this.Height), this.Left, this.Top, this.Width, this.Height, System.Drawing.GraphicsUnit.Pixel, imageAttr);//去除邮票效果的方法受精简版框架支持。

说明如下:
1,利用空间的OnPaint方法重画控件(用背景)实现透明效果(可以由焦点的透明控件)
2,new Rectangle(0, 0, this.Width, this.Height)前两个参数一定为0,0。
3,邮票效果是有,net的缩放机制造成的用知道的区域画制定的源区域就可以解决了。
4,美工界面+你的透明控件就O啦!
5,时间仓促就不多说了,有疑问请留言!沟通成就每一个人

本文来源:http://www.bbyears.com/jiaocheng/14609.html

猜你感兴趣

热门标签

更多>>

本类排行