Ace
2006-05-28 15:35:47
[PHP]function CheckBitmap(iBitmap, x, y : Integer) : Boolean;
var xx,yy,x1,y1,x2,y2 : Integer;
begin
Result := false;
x1 := x - 1;x2 := x + 1;y1 := y - 1;y2 := y + 1;
if (FindBitMapTol(xx,yy,iBitmap,x1,y1,x2,y2)) then
Result := true;
end;[/PHP]
Returns true if the specified bitmap is at the x,y location you supply.
var xx,yy,x1,y1,x2,y2 : Integer;
begin
Result := false;
x1 := x - 1;x2 := x + 1;y1 := y - 1;y2 := y + 1;
if (FindBitMapTol(xx,yy,iBitmap,x1,y1,x2,y2)) then
Result := true;
end;[/PHP]
Returns true if the specified bitmap is at the x,y location you supply.