My application uses labels that is either black or white as its font color. My question is ... how can you determine wether to use black or white font color depending on the color of the label's background color?
I would like to use a function to get this result,
something like the one below
function Get_FontColor(background: TColor): TColor;
given the background
if background is ..... then FontColor:=clBlack
else ... FontColor:=clWhite;
thanks so much :)