I am trying to show the K% value of points while moving and although the image in photoshop does display the correct one, it does not in my program. The RGB values match so i assume it is my formula. I am using that: TestLum := FormatFloat('##0', (255 - GetRValue(AColor)) / 2.55);
Acolor is a Tcolor variable. the image isin grayscale so theR,G and B values are the same.
Advice Pierre
|