PictureEffectsRaw Xojo Plugin

ImageComparerRaw.Compare Method (console safe)

A more detailed comparison that returns detailed information on what is different between the bitmaps.

Compare(
   p1 as RawBitmap,
   p2 as RawBitmap,
   tolerance as Integer,
   resultMaskFormat as RawBitmap.RawBitmapFormat,
   foundDiffResultColor as Color,
   notFoundResultColor as Color) as RawBitmap

Parameters

p1
One of the bitmaps to compare.
p2
The other bitmap to be compared.
tolerance
Tolerance of the comparison, 0 = no tolerance, 420 = max tolerance.
resultMaskFormat
Format of the generated difference mask.

Only following are supported:
RawBitmap.RawBitmapFormat.g
RawBitmap.RawBitmapFormat.RGB
RawBitmap.RawBitmapFormat.BGR


For anything else error will be generated in the difference value.
foundDiffResultColor
Specifies the color of difference pixels to generate in the result mask. If result mask is Gray channel only then the RGB values in the color will be averaged to get gray tone.
notFoundResultColor
Specifies the color of pixels that are not different to generate in the result mask. If result mask is Gray channel only then the RGB values in the color will be averaged to get gray tone.

Returns

RawBitmap
Black and white RawBitmap representing mask of changed pixels.

Remarks

See Also

ImageComparerRaw Class