TColor and how to get Colour Range
Posted on 1998-07-14
My question is as follows....
I am writing a program for a sports medicine practice. It involoves importing an avi made using a video capture device. Now when I import the image into delphi I have options on a TImage to change the number of colours ie 32bit, 16bit etc. My question involves the actual colours themselves and how they are listed in the 16million colour format. For example ... if the image has a person in it an on that person there are yellow markers as I perceive it.
Now to pick out all the colours on that yellow maker for instance may require me to check the range (converted from Hex) of 4,000,000 to 16,000,000 . Is there a definite scale of Yellow, Blue, Red etc that will not miss out any colours as in delphi3 help i can only see the absolute colours listed for example white is $00FFFFFF and black is
$00000000 . Now yellow will vary based on intensity and i guess that is my question how can you list/get the colurs
in a range based on their intensity ie from least intense to most intense but not moving out of the actual colours range. I use Canvas.Pixels[x,y] to get the pixel colour. Can anyone help me?
Thanks in advance