Jump to content
uuum

Bitmap Functions Problems SCAR 3.38

Recommended Posts

Please help me. Some time ago I used SCAR Divi version 3.34, now I use the SCAR Divi 3.38.

I checked the obsolete functions (FindColorCircle, FindColorCircleTolerance, FindColorSpiral2, FindColorsTolerance, FindColorTriangle, ......) there is no set of functions: (FindBitmapTolerance)

If you want to find a bitmap using the function (FindBitmap) it works (OK) :)

If you want to find a bitmap with the specified tolerance levels using the (FindBitmapTolerance) it does not work.: Mad: So how can I use the version of the SCAR Divi 3.38 to find a bitmap with the specified tolerance.

Sorry for my English.

 

example:

var MPbuttonjump: TSCARBitmap;

var x, y: Integer;

 

if (findbitmap (x, y, BMPbuttonjump, 0,0,1365,767)) then begin / / Works :)

 

if (findbitmaptolerance (x, y, BMPbuttonjump, 0,0,1365,767,80)) then begin / / does not work (Compiler Error - Unknown identifier 'FindBitmapTolerance') : Confused:: Mad:

Link to comment
Share on other sites

FindBitmapTolerance is now:

function FindBitmapTol(var X, Y: Integer; bmp: TSCARBitmap; XS, YS, XE, YE, tol: Integer): Boolean;

 

Note:

1. Type "Find" to SCAR Divi's script editor area

2. Press CTRL + SPACE

3. List will popup with nearly all finding routines.

 

If you want to find nearly all bitmap finding routines, you could type "FindBitmap" or for color "FindColor" before hitting CTRL + SPACE.

 

-Jani

Edited by Janilabo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...