

There is no difference between the 2 except that that if i check for the result of FindDeformedBitmapToleranceIn it will return an error.
Any idea what's causing the error?
Here's the code that you can try out:
Simba Code:
program new;
{$DEFINE SMART}
{$I SRL/SRL.simba}
procedure OutOfRange;
var
i,bmpOrt,x,y: Integer;
ortAcc: Extended;
begin
bmpOrt := BitmapFromString(10, 16, 'meJxt0csKglAQxvGHKQihkkS7GhVmUJnUoQtiUla2KNrVohZBl0WLIKIH6FX7YGAQDf648DeHM2iyO0y0BSrrOidGY7TebEuHW3F/SbsBk78K0GyxxADUfH2RnFOYqI7V03ZHIsqy+1zt+m4YTS1foOyBcKbeXwWR8gArESsNQA2zxRQZwJKV0yOTlVFEsbA396F4QwM0A8JdYUWKqnKs9fsH4XZ8GSZW7Iwngk4cF4U1HCktEFc6DkpJEv2a+HEQqp6f6AeAVpTc');
for i:=1 to 28 do
begin
FindDeformedBitmapToleranceIn(bmpOrt,x,y,InvBox(i).X1,InvBox(i).Y1,InvBox(i).X2,InvBox(i).Y2,10,0,true,ortAcc);
if ortAcc>0.5 then
begin
writeln(i);
Break;
end;
end;
FreeBitmap(bmpOrt);
end;
begin
SetupSRL;
OutOfRange;
end.