lordsaturn
2008-09-21 13:27:37
2008-09-21 13:27:37
2008-09-21 13:30:16
function FindColorsArrayTolerance(var ResultTPA: T2DPointArray; var Colors: TIntegerArray; xs, ys, xe, ye, Tol: integer): Boolean;
var
i: integer;
begin
if Length(Colors) = 0 then Exit;
for i := 0 to Length(Colors) - 1 do
begin
FindColorsTolerance(ResultTPA[i], Colors[i], xs, ys, xe, ye, Tol);
if Length(ResultTPA[i]) = 0 then
Result := False;
end;
end;
function FindColorsArrayTolerance(var ResultTPA: T2DPointArray; var Colors: TIntegerArray; xs, ys, xe, ye, Tol: integer): Boolean;
var
i: integer;
begin
if Length(Colors) = 0 then Exit;
for i := 0 to Length(Colors) - 1 do
begin
FindColorsTolerance(ResultTPA[i], Colors[i], xs, ys, xe, ye, Tol);
if not Length(ResultTPA[i]) = 0 then
Result := True;
end;
end;
2008-09-23 18:15:02