Creates a factory function that manages a single, reusable PixelData instance. This is used to minimize garbage collection overhead by recycling the underlying pixel buffer across multiple operations.
A function that takes width and height and returns a pooled PixelData instance.
Creates a factory function that manages a single, reusable PixelData instance. This is used to minimize garbage collection overhead by recycling the underlying pixel buffer across multiple operations.