GraphicsCommon Namespace
function ToGray(rgb: TRGBTriple): byte;
GraphicsCommon
Converts color triplet to a "visually correct" gray color.
This method is highly optimized for speed of black and white 24bpp images.