Browse Source

Fixed a bug: When a processor "did not cover" the whole output image, there were memory garbage artifacts in the background.

af/merge-core
Anton Firszov 9 years ago
parent
commit
4b7fe28336
  1. 2
      src/ImageSharp/Image/PixelAccessor{TColor}.cs

2
src/ImageSharp/Image/PixelAccessor{TColor}.cs

@ -59,7 +59,7 @@ namespace ImageSharp
/// <param name="width">The width of the image represented by the pixel buffer.</param>
/// <param name="height">The height of the image represented by the pixel buffer.</param>
public PixelAccessor(int width, int height)
: this(width, height, new PinnedBuffer<TColor>(width * height))
: this(width, height, PinnedBuffer<TColor>.CreateClean(width * height))
{
}

Loading…
Cancel
Save