Browse Source

Fix renaming error

pull/182/head
James Jackson-South 10 years ago
parent
commit
bc52ba58c2
  1. 1
      src/ImageSharp/Image/ImageBase{TPixel}.cs
  2. 1
      src/ImageSharp/Image/PixelAccessor{TPixel}.cs

1
src/ImageSharp/Image/ImageBase{TPixel}.cs

@ -167,6 +167,7 @@ namespace ImageSharp
int newHeight = pixelSource.Height; int newHeight = pixelSource.Height;
// Push my memory into the accessor (which in turn unpins the old puffer ready for the images use) // Push my memory into the accessor (which in turn unpins the old puffer ready for the images use)
TPixel[] newPixels = pixelSource.ReturnCurrentColorsAndReplaceThemInternally(this.Width, this.Height, this.pixelBuffer);
this.Width = newWidth; this.Width = newWidth;
this.Height = newHeight; this.Height = newHeight;
this.pixelBuffer = newPixels; this.pixelBuffer = newPixels;

1
src/ImageSharp/Image/PixelAccessor{TPixel}.cs

@ -236,6 +236,7 @@ namespace ImageSharp
/// <param name="pixels">The pixels.</param> /// <param name="pixels">The pixels.</param>
/// <returns>Returns the old pixel data thats has gust been replaced.</returns> /// <returns>Returns the old pixel data thats has gust been replaced.</returns>
/// <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>
internal TPixel[] ReturnCurrentColorsAndReplaceThemInternally(int width, int height, TPixel[] pixels)
{ {
TPixel[] oldPixels = this.pixelBuffer.TakeArrayOwnership(); TPixel[] oldPixels = this.pixelBuffer.TakeArrayOwnership();
this.SetPixelBufferUnsafe(width, height, pixels); this.SetPixelBufferUnsafe(width, height, pixels);

Loading…
Cancel
Save