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