Making COLORREF lighter

This is a discussion on Making COLORREF lighter within the Windows Programming forums, part of the Platform Specific Boards category; I would like to make the COLORREF variable obtained by GetSysColor( COLOR_3DFACE ) lighter... How can I increase the intensities ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    Making COLORREF lighter

    I would like to make the COLORREF variable obtained by GetSysColor( COLOR_3DFACE ) lighter... How can I increase the intensities of the r,g and b componenets?

  2. #2
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Nevermind, I found the GetRValue,GetGValue and GetBValue macros and then increased the intensity and used PALETTERGB to recombine them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. making sprites
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 02-20-2010, 06:00 AM
  2. Making great graphics
    By MadCow257 in forum Game Programming
    Replies: 1
    Last Post: 02-20-2006, 10:59 PM
  3. Making control...
    By Finchie_88 in forum C++ Programming
    Replies: 2
    Last Post: 09-07-2004, 01:42 PM
  4. Replies: 2
    Last Post: 01-13-2003, 12:28 PM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21