Results 1 to 2 of 2

Thread: How to turn a PictureBox image into greyscale?

  1. #1

    Thread Starter
    Addicted Member Michel Jr's Avatar
    Join Date
    Jan 2000
    Location
    Brazil
    Posts
    175
    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.

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width