public PooledPixelBuffer(IPixelBufferPool bufferPool, int capacity = DefaultCapacity) { _bufferPool = bufferPool; _array = capacity == 0 ? _pool.Rent(DefaultCapacity) : _pool.Rent(capacity); }
public DefaultDiffAlgorithm() { PixelBufferPool = new DefaultPixelBufferPool <PooledPixelBuffer>(() => new PooledPixelBuffer(PixelBufferPool)); }