Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想删除位图中的白色背景颜色
Bitmap capcha = new Bitmap("C:/image.jpg"); pictureBox1.Image = capcha;
但我想在我的图片框1中只显示背景中存在的没有白色的图像
尝试像这样在验证码中设置透明度:
Bitmap capcha = new Bitmap(@"C:/image.jpg"); capcha.MakeTransparent(Color.White); pictureBox1.Image = capcha;
我希望这是你需要的。