Skip to content

DiffImageOptions

OptionTypeDefaultWhat it decides
tolerancenumber0.05How different two pixels have to be, from 0 to 1, before it counts.
ignoreAntialiasingbooleantrueWhether a pixel that only differs because an edge was drawn smooth is left out.
align'none' | 'shift''none'Whether an offset between the two is looked for first.
alignRadiusnumber16How far that search goes, in pixels.
blockSizenumber16How coarse the grid is that changed pixels are grouped on.
maxRegionsnumber200The most regions to return. Past this the largest are kept.

DIFFINE_IMAGE_DEFAULTS is that table as an object.

OptionTypeDefaultWhat it decides
tolerancedouble0.05How different two pixels have to be, from 0 to 1, before it counts.
ignoreAntialiasingbooltrueWhether a pixel that only differs because an edge was drawn smooth is left out.
alignDiffImageAlignDiffImageAlign.noneWhether an offset between the two is looked for first.
alignRadiusint16How far that search goes, in pixels.
blockSizeint16How coarse the grid is that changed pixels are grouped on.
maxRegionsint200The most regions to return. Past this the largest are kept.

kDiffineImageDefaults is that table as a value.

Released under the MIT License