Hi all,
I'm creating a custom button control. I need to show a color image when the button control is enabled and a gray shade of the same image when the button control is disabled. How can i convert a color image to a gray image in VB 2005.
Thanks,
Printable View
Hi all,
I'm creating a custom button control. I need to show a color image when the button control is enabled and a gray shade of the same image when the button control is disabled. How can i convert a color image to a gray image in VB 2005.
Thanks,
Here is how you do it in vb.
http://www.codeproject.com/vb/net/colormatrix.asp
You can also use a third party program to make a copy of your image in grayscale and use it when button is disabled. I would go this way myself as it would be faster and your code would be smaller. Use IrfanView, get it here,
http://www.irfanview.com/