Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Janilabo

IsBitmap(Tolerance)At

Recommended Posts

For checking if bitmap is located at X, Y coordinates.

 

IsBitmapAt

[scar]function IsBitmapAt(bitmap, x, y: Integer): Boolean;

var

a, b, w, h: Integer;

begin

GetBitmapSize(bitmap, w, h);

Result := FindBitmapIn(bitmap, a, b, x, y, ((x + w) - 1), ((y + h) - 1));

end;[/scar]

 

IsBitmapToleranceAt

[scar]function IsBitmapToleranceAt(bitmap, x, y, tolerance: Integer): Boolean;

var

a, b, w, h: Integer;

begin

GetBitmapSize(bitmap, w, h);

Result := FindBitmapToleranceIn(bitmap, a, b, x, y, ((x + w) - 1), ((y + h) - 1), tolerance);

end;[/scar]

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×