- translated to hsv
- V-layer is corrected by scaling values from (min,max) range to (0,255) range
- assembled back to rgb
- correcting R,G,B layers of result by same idea as the V-layer on second step
there is no aforge.net code, because it processed by php prototype code, but afaik there is no any problem to do such with aforge.net.
results are: