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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With