SCAR Code:
{*******************************************************************************
function GetColorsBox(x1, y1, x2, y2: Integer; ClearSameColors: Boolean): TIntegerArray;
By: Rasta Magician
Description: Returns an array of all colors within box ((x1, y1), (x2, y2)).
If ClearSameColors is set to True, all duplicate colors will be deleted.
*******************************************************************************}
SCAR Code:
GetClientDimensions(w, h);
TIA := GetColorsBox(0, 0, w, h, true);
http://www.villavu.com/repositories/...ore/Color.scar
~RM