Function FFLocalizeChanges

FastFind

Function Reference

FFLocalizeChanges

Compares two SnapShots and specifies the number of differences, as well as the area in which they occur.

FFLocalizeChanges ( NoSnapShot1, NoSnapShot2 [, ShadeVariation] )

 

Parameters

NoSnapShot1 The "slot" number of the first SnapShot to compare.
NoSnapShot2 The "slot" number of the second SnapShot to compare.
ShadeVariation [optional] A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match).

 

Return Value

Success: Returns a five-element array specifying the area and number of differences.
Failure: Returns 0 and sets @ERROR = 1

 

Remarks

If successful, the elements of the array returned are as follows:
[0]: left edge of the rectangle
[1]: upper edge of the rectangle
[2]: right edge of the rectangle
[3]: lower edge of the rectangle
[4]: Number of pixels that changed

 

Related

FFSnapShot, FFIsDifferent