In the past I've asked how to use bit shifting to reduce a pixel color by half .. and got this reply .. which works great.
ARGB = ( ARGB And $FEFEFE) Shr 1
What I want to do is only reduce a pixel color to 75% or 80% of it's original color ( a sort of fade )but using a method similar to above. I know I can multiply the rgb components by .75 to do this. For some reason all this shifting left / right is beyond me .. anyone got something which can help?
ARGB = ( ARGB And $FEFEFE) Shr 1
What I want to do is only reduce a pixel color to 75% or 80% of it's original color ( a sort of fade )but using a method similar to above. I know I can multiply the rgb components by .75 to do this. For some reason all this shifting left / right is beyond me .. anyone got something which can help?