close
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;