GetBoolMask

function GetBoolMask(img: TImage32; reference: TColor32; compareFunc: TCompareFunction; tolerance: Integer): TArrayOfByte;


GetBoolMask finds all pixels in 'img' that match the 'reference' color according to the supplied compare function. The returned value is a binary (true/false) unidimensional array whose length corresponds to the supplied image's width x height.

See Also

TImage32.ConvertToBoolMask, GetByteMask