Changing the tint of a bitmap while preserving the overall brightness

Posted by MusiGenesis on Stack Overflow See other posts from Stack Overflow or by MusiGenesis
Published on 2010-02-27T15:29:32Z Indexed on 2010/05/23 2:31 UTC
Read the original article Hit count: 261

Filed under:
|
|
|

I'm trying to write a function that will let me red-shift or blue-shift a bitmap while preserving the overall brightness of the image. Basically, a fully red-shifted bitmap would have the same brightness as the original but be thoroughly red-tinted (i.e. the G and B values would be equal for all pixels). Same for blue-tinting (but with R and G equal). The degree of spectrum shifting needs to vary from 0 to 1.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET