Function FFKeepChanges

FastFind

Function Reference

FFKeepChanges

Change a SnapShot so that it keeps only the pixels that are different from another SnapShot.

FFKeepChanges ( NoSnapShot1, NoSnapShot2 [, ShadeVariation] )

 

Parameters

NoSnapShot1 The "slot" number of the SnapShot to change.
NoSnapShot2 The "slot" number of the SnapShot to compare against.
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 1
Failure: Returns 0 and sets @ERROR

 

Remarks

The first SnapShot will be modified when this function is called, changing pixels that are the same in both SnapShots to black. The second SnapShot is kept unchanged.

 

Related

FFSnapShot, FFIsDifferent, FFLocalizeChanges, FFKeepColor, FFDrawSnapShot