Difference between revisions of "FindBitmap"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 14:26, 6 July 2011

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