CompareAlpha

function CompareAlpha(master, current: TColor32; tolerance: Integer): Boolean;


A callback function that can be passed as a parameter to various functions. This function compares two colors and returns true when the alpha channel of 'current' is within 'tolerance' of the alpha channel in 'master'.