C# 把背景为白色的图片变成透明图片

Image Imageimage;
Imageimage = System.Drawing.Image.FromFile(@"C:A.JPG");
Bitmap bitmap = new Bitmap(Imageimage);
bitmap.MakeTransparent(Color.White);
pictureBox1.Image = bitmap;

原文地址:https://www.cnblogs.com/elautoctrl/p/4871858.html