GetByteMask

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


GetByteMask compares all pixels in 'img' with the 'reference' color and returns byte values according to the supplied compare function. The returned value is unidimensional array whose length corresponds to the supplied image's width x height.

See Also

TImage32.ConvertToAlphaMask, GetBoolMask