theres your getcolors tolerance.SCAR Code:function getcolorstol(cordinate1, cordinate2: Tpoint; tolerance: integer): boolean;
var col,col2: integer;
begin
col := getcolor(cordinate1.x,cordinate1.y);
col2 := getcolor(cordinate2.x,cordinate2.y);
result := similarcolors(col, col2, tolerance);
end;





Reply With Quote

