Creates a factory function that manages a single, reusable ImageData instance.
This is used to minimize garbage collection overhead by recycling the
underlying pixel buffer across multiple operations.
Returns (width:number,height:number)=>ImageData
A function that takes width and height and returns a pooled ImageData instance.
Creates a factory function that manages a single, reusable ImageData instance. This is used to minimize garbage collection overhead by recycling the underlying pixel buffer across multiple operations.