| PictureEffectsRaw Xojo Plugin |
|
ImageComparerRaw.CompareAsync Method (console safe)
Asynchronous version of the more detailed comparison that returns detailed information on what is different between the bitmaps.

CompareAsync(
p1
as RawBitmap,
p2
as RawBitmap,
tolerance
as Integer,
resultMaskFormat
as RawBitmap.RawBitmapFormat,
foundDiffResultColor
as Color,
notFoundResultColor
as Color,
completeTarget
as Object,
completeMethod
as Ptr)
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.
- completeTarget
- Instance of target class that should receive complete signal. (Or nil if no signal is wanted)
- completeMethod
- Address of a method on the class instance passed into the completeTarget parameter. This method must take exactly one parameter which is:
effect as MPImageFilterRaw
It is all right to cast effect to ImageComparerRaw or to let the parameter be effect as ImageComparerRaw if wanted.
Wrong parameters on the completeMethod will give you crash.
If completeTarget is nil then this parameter should also be nil.
Remarks
See Also
ImageComparerRaw Class