日期:2014-05-19  浏览次数:20744 次

请问pictureBox框如何让背景透明啊??
加载的是透明的GIF图片,想用它做图层

------解决方案--------------------
如果图层,最好还是自己绘制,比如这样:
Bitmap bmp = yourGif as Bitmap;
System.Drawing.Drawing2D.ImageAttribs imgAtt = new System.Drawing.Drawing2D.ImageAttribs();
imgAtt.SetKeyColor(bmp.GetPix(0,0),bmp.GetPix(0,0));
g.DrawImage(具体不记得了。最后要吧这个imgAtt)用上