|
-
Apr 9th, 2000, 04:27 AM
#1
Thread Starter
Addicted Member
Hello,
I'm developing an OCX like an IE button.
How can I turn the image of the PictureBox into GreyScale (like a disabled button)?
Is there any Windows API to do this?
I know about changing each bit of the picture by a grey bit, but I think its a very slow solution.
Some ideas?
Thanks a lot.
Michel Jr.
-
Apr 9th, 2000, 05:02 AM
#2
Actually that solution works pretty fast. All you have
to do is use then For loop to for the X axis, and put another For loop in there for the X axis, then
use the GetPixel and SetPixel API. you could do it in
about 7-10 lines of code I think.
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
|