I want to remove the white background color in the bitmap
Bitmap capcha = new Bitmap("C:/image.jpg"); pictureBox1.Image = capcha;
but I want to display in my pictureBox1 only an image without white that exists in the background
try setting transparency in capcha as follows:
Bitmap capcha = new Bitmap(@"C:/image.jpg"); capcha.MakeTransparent(Color.White); pictureBox1.Image = capcha;
Hope this is what you need.
Source: https://habr.com/ru/post/1468867/More articles:Ajax form only presents sometimes - javascriptChanging class attribute values ββat runtime - c #VBA macro for quick row deletion - optimizationlibcurl with a client certificate, I get the error message "Could not load client key -8178. * NSS error -8178" - libcurlRails Facebook Notifications - ruby-on-railshow can I confidently determine the relative path in node.js - javascriptFixing my implementation of the "tree tree traversal" algorithm using Stack - javaOrder tree traversal algorithm for binary search tree using stack - javaNew Relational Error Reporting - Stop Errors E_NOTICE - phpAES ECB encrypt / decrypt only decrypts the first 16 bytes - cAll Articles