C#将图片白色背景设置为透明
Image image = System.Drawing.Image.FromFile(@"C:\A.JPG");
Bitmap pbitmap = new Bitmap(image);
pbitmap.MakeTransparent(Color.White);
pictureBox1.Image = pbitmap;
Image image = System.Drawing.Image.FromFile(@"C:\A.JPG");
Bitmap pbitmap = new Bitmap(image);
pbitmap.MakeTransparent(Color.White);
pictureBox1.Image = pbitmap;