PictureEffects Xojo Plugin |

# ImageComparer.Compare Method

A detailed comparison that returns pixel count and comparison mask and you can set tolerance.

Compare(
p1 as Picture,
p2 as Picture,
diffColor as Color,
tolerance as Integer,
changedPixelCount as Integer,
difference as Integer) as Picture

#### Parameters

p1
  One of the picture to compare.
p2
  The other picture to compare.
diffColor
  Specifies the color of difference pixels to generate in the result mask.
tolerance
  Tolerance of the comparison, 0 = no tolerance, 420 = max tolerance.
changedPixelCount
  A ByRef parameter that after completion of the function will contain number of pixels that are different.
difference
  A ByRef parameter that after completion of the function will contain a constant that indicates the result of the comparison. Possible values are: ImageComparer.DIFFERENCE_ERROR, ImageComparer.DIFFERENCE_NONE, ImageComparer.DIFFERENCE_PIXELDEPTH, ImageComparer.DIFFERENCE_SIZE, ImageComparer.DIFFERENCE_PIXELS

#### Returns

Picture
  A picture representing mask of change pixels. The color of this mask will be what has been defined in the diffColor parameter.

#### Remarks

#### See Also

ImageComparer Class