Results 1 to 2 of 2

Thread: [2005] Convert Color Image to a Gray Shade Image

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2006
    Location
    Chennai, INDIA
    Posts
    58

    Question [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,
    Sugan
    Chennai, INDIA.

  2. #2
    Addicted Member
    Join Date
    Jan 2002
    Location
    West Virginia
    Posts
    193

    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
  •  



Click Here to Expand Forum to Full Width