如何从位图的白色背景颜色 [英] How to remove white background color from Bitmap
本文介绍了如何从位图的白色背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要删除的白色背景颜色的位图
I want to remove the white background color in a bitmap
Bitmap capcha = new Bitmap("C:/image.jpg");
pictureBox1.Image = capcha;
但我想不存在在白色的背景,我只是pictureBox1要显示的图像
but I want to display in my pictureBox1 just the image without white that exists in the background
推荐答案
尝试设置透明度CAPCHA是这样的:
try to set transparency in capcha like this:
Bitmap capcha = new Bitmap(@"C:/image.jpg");
capcha.MakeTransparent(Color.White);
pictureBox1.Image = capcha;
我希望它是什么ü需要。
I hope it is what u need.
这篇关于如何从位图的白色背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文