/// Switches the buffers used by the image and the PixelAccessor meaning that the Image will "own" the buffer from the PixelAccessor and the PixelAccessor will now own the Images buffer.
/// Switches the buffers used by the image and the PixelAccessor meaning that the Image will "own" the buffer from the PixelAccessor and the PixelAccessor will now own the Images buffer.
// This object will be cleaned up by the Dispose method.
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SuppressFinalize to
// Therefore, you should call GC.SuppressFinalize to
@ -171,7 +173,7 @@ namespace ImageSharp
/// </summary>
/// </summary>
publicvoidReset()
publicvoidReset()
{
{
this.pixelBuffer.Clear();
this.PixelBuffer.Clear();
}
}
/// <summary>
/// <summary>
@ -243,7 +245,7 @@ namespace ImageSharp
/// <remarks>If <see cref="M:PixelAccessor.PooledMemory"/> is true then caller is responsible for ensuring <see cref="M:PixelDataPool.Return()"/> is called.</remarks>
/// <remarks>If <see cref="M:PixelAccessor.PooledMemory"/> is true then caller is responsible for ensuring <see cref="M:PixelDataPool.Return()"/> is called.</remarks>