C#将图片白色背景设置为透明

Image image = System.Drawing.Image.FromFile(@"C:\A.JPG");

Bitmap pbitmap = new Bitmap(image);

pbitmap.MakeTransparent(Color.White);

pictureBox1.Image = pbitmap;

posted @ 2013-06-18 13:59  94cool  阅读(2683)  评论(0)    收藏  举报