コード例 #1
0
ファイル: PooledPixelBuffer.cs プロジェクト: Revan600/ImgDiff
 public PooledPixelBuffer(IPixelBufferPool bufferPool, int capacity = DefaultCapacity)
 {
     _bufferPool = bufferPool;
     _array      = capacity == 0 ? _pool.Rent(DefaultCapacity) : _pool.Rent(capacity);
 }
コード例 #2
0
 public DefaultDiffAlgorithm()
 {
     PixelBufferPool = new DefaultPixelBufferPool <PooledPixelBuffer>(() => new PooledPixelBuffer(PixelBufferPool));
 }