CompareBitmaps
Obsah
Description
Alias: CMB
Compares 2 bitmaps.
Compares BitmapA with BitmapB and uses the results to set the outputs Equal, NotEqual, AContainsB and BContainsA. The values of the currently set tolerances are taken into account during the comparison. For the comparison, the mask for BitmapA (MaskModeA and MaskColorA parameters) and BitmapB (MaskModeB and MaskColorB parameters) can also be set.
Input parameters
BitmapA
Type Bitmap
Bitmap comapred first.
BitmapB
Type Bitmap
Bitmap comapred second.
MaskModeA
Type Number
Mask mose for BitmapA (0=none, 1=user mask, 2=automatic mask).
MaskModeB
Type Number
Mask regime for BitmapB (0=none, 1=user mask, 2=automatic mask).
MaskColorA
Type Color
Color of mask in BitmapA (only used for MaskModeA=1).
MaskColorB
Type Color
Color of mask in BitmapB (only used for MaskModeB=1).
OnlyIfNotNull
Type Number
If the value is 1, the command will be executed only if both bitmaps are specified.
Enabled
Type Number
Enables or disables the command. If the value is 0, the command will not be executed.
PreWait
Type Number
Delay in milliseconds before executing a command. It has no effect if Enabled=0.
PostWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
Output parameters
Equal
Type Number
If BitmapA and BitmapB are identical, the value will be 1, otherwise 0.
NotEqual
Type Number
Negation of the parameter Equal. If BitmapA and BitmapB are different, the value will be 1, otherwise 0.
AContainsB
Type Number
If BitmapB is part of BitmapA, the value will be 1, otherwise 0.
BContainsA
Type Number
If BitmapA is part of BitmapB, the value will be 1, otherwise 0.