|
-
Jul 5th, 2006, 01:47 AM
#1
Thread Starter
Member
[2005] Convert Color Image to a Gray Shade Image
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,
-
Jul 5th, 2006, 07:39 AM
#2
Addicted Member
Re: [2005] Convert Color Image to a Gray Shade Image
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/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|