The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ColorToGray


Unit: SDL_sdlcolors
Class: none
Declaration: function ColorToGray (Cl: TColor): integer;

The function ColorToGray transforms the color Cl into a gray value. The function returns values between 0 (black) and 255 (white).

Hint: Please note that the gray scale is calculated according to common television standards.



Last Update: 2023-Oct-08