问题
I want to remove the white background color in a bitmap
Bitmap capcha = new Bitmap("C:/image.jpg");
pictureBox1.Image = capcha;
but I want to display in my pictureBox1 just the image without white that exists in the background
回答1:
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.
来源:https://stackoverflow.com/questions/15375453/how-to-remove-white-background-color-from-bitmap