FindBitmap

From SCAR Divi Manual
Revision as of 15:26, 6 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function FindBitmap(Bitmap: Integer; var x, y: Integer): Boolean; </source> ==Availability== SCAR Divi 3.00 > Current ==Descri...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function FindBitmap(Bitmap: Integer; var x, y: Integer): Boolean;

Availability

SCAR Divi 3.00 > Current

Description

Searches the entire selected client window for a given bitmap associated with the index given by Bmp in the bitmap resource manager. If the bitmap is found, the function returns true and the coordinates where it found the bitmap in x and y. If the bitmap was not found, it returns false.

Example

var
  b, x, y: Integer;

begin
  b := BitmapFromString(1, 1, '');
  CopyClientToBitmap(b, 26, 85, 40, 100);
  FindBitmap(b, x, y);
  WriteLn(IntToStr(x) + ', ' + IntToStr(y));
end.

Output:

25, 85

See Also