Cazax
2008-02-29 10:08:53
my second function:
The result will be the number of bmps found.
function HowManyBmps(bmpname,MaxTol,x1,y1,x2,y2 : Integer) : Integer;
var
x,y,BmpColor :Integer;
BMPs : TPointArray;
begin
BmpColor := AutoColorThis(bmpname,MaxTol,x1,y1,x2,y2);
FindColorsSpiralTolerance(x,y,BMPs,BmpColor,x1,y1,x2,y2,0);
Result := GetArrayLength(BMPs);
end;The result will be the number of bmps found.