mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-30 12:52:16 -05:00
Tests: Update BmpBench.
This commit is contained in:
parent
013daccf07
commit
55b0435a4e
@ -1,6 +1,5 @@
|
||||
program new;
|
||||
//http://farm4.static.flickr.com/3067/2612399892_7df428d482.jpg
|
||||
{Make the above bitmap your target}
|
||||
|
||||
var
|
||||
Bmp : integer;
|
||||
x,y : integer;
|
||||
@ -19,11 +18,14 @@ begin
|
||||
setcolortolerancespeed(c);
|
||||
|
||||
t:=getsystemtime;
|
||||
for i := 0 to 100 do
|
||||
for i := 0 to 10 do
|
||||
findBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,10);
|
||||
writeln((getsystemtime-t) / 100.0);
|
||||
if findBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,200) then
|
||||
writeln((getsystemtime-t) / 10.0);
|
||||
if findBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,10) then
|
||||
begin
|
||||
writeln('found');
|
||||
movemouse(x,y);
|
||||
end;
|
||||
end;
|
||||
|
||||
{if FindBitmapToleranceIn(bmp,x,y,0,0,w-1,h-1,300) then
|
||||
|
Loading…
Reference in New Issue
Block a user