1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-01 05:12:16 -05:00
Simba/Tests/PS/pixelshift.simba

19 lines
465 B
Plaintext
Raw Normal View History

2010-09-11 08:01:33 -04:00
program new;
var
bmp1,bmp2 : integer;
begin
repeat
bmp1 := BitmapFromClient(0,0,514,240);
wait(150);
bmp2 := BitmapFromClient(0,0,514,240);
Writeln(CalculatePixelShift(bmp1,bmp2,inttobox(416,87,514,240)));
Writeln(floattostr(CalculatePixelTolerance(bmp1,bmp2,inttobox(416,87,514,240),0)));
Writeln(floattostr(CalculatePixelTolerance(bmp1,bmp2,inttobox(416,87,514,240),1)));
freebitmap(bmp1);
freebitmap(bmp2);
wait(150);
until false;
end.