Browse Source

Make STYLECOP happy

af/merge-core
Jason Nelson 8 years ago
parent
commit
fecab7f03c
  1. 7
      src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
  2. 3
      src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
  3. 3
      src/ImageSharp/Formats/Png/PngDecoderCore.cs
  4. 3
      src/ImageSharp/Formats/Png/PngEncoderCore.cs

7
src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs

@ -224,7 +224,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
var color = default(TPixel);
var rgba = new Rgba32(0, 0, 0, 255);
using (var buffer = this.memoryManager.AllocateClean2D<byte>(width, height))
using (Buffer2D<byte> buffer = this.memoryManager.AllocateClean2D<byte>(width, height))
{
this.UncompressRle8(width, buffer.Span);
@ -398,7 +398,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
var color = default(TPixel);
var rgba = new Rgba32(0, 0, 0, 255);
using (var buffer = this.memoryManager.AllocateManagedByteBuffer(stride))
using (IManagedByteBuffer buffer = this.memoryManager.AllocateManagedByteBuffer(stride))
{
for (int y = 0; y < height; y++)
{
@ -585,8 +585,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
type: BitConverter.ToInt16(data, 0),
fileSize: BitConverter.ToInt32(data, 2),
reserved: BitConverter.ToInt32(data, 6),
offset: BitConverter.ToInt32(data, 10)
);
offset: BitConverter.ToInt32(data, 10));
}
/// <summary>

3
src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs

@ -73,8 +73,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp
type: 19778, // BM
offset: 54,
reserved: 0,
fileSize: 54 + infoHeader.ImageSize
);
fileSize: 54 + infoHeader.ImageSize);
WriteHeader(writer, fileHeader);
this.WriteInfo(writer, infoHeader);

3
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -1164,8 +1164,7 @@ namespace SixLabors.ImageSharp.Formats.Png
colorType: (PngColorType)data[9],
compressionMethod: data[10],
filterMethod: data[11],
interlaceMethod: (PngInterlaceMode)data[12]
);
interlaceMethod: (PngInterlaceMode)data[12]);
}
/// <summary>

3
src/ImageSharp/Formats/Png/PngEncoderCore.cs

@ -219,8 +219,7 @@ namespace SixLabors.ImageSharp.Formats.Png
bitDepth: this.bitDepth,
filterMethod: 0, // None
compressionMethod: 0,
interlaceMethod: 0
);
interlaceMethod: 0);
this.WriteHeaderChunk(stream, header);

Loading…
Cancel
Save