Function: changedArea()
changedArea(
before,after,width,height):BoundingBox|undefined
Defined in: src/lib/messages/PatchSender/index.ts:20
The smallest box containing every pixel that differs between two images of the same size (one 32-bit value per pixel), or undefined if they are the same.
Parameters
before
Uint32Array
after
Uint32Array
width
number
height
number
Returns
BoundingBox | undefined
Example
changedArea(before, after, 100, 100); // [10, 20, 31, 45]