Browse Source

code analyzers fighting each other

af/merge-core
Anton Firszov 8 years ago
parent
commit
d9dcfbe5c4
  1. 3
      src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
  2. 3
      src/ImageSharp/Image/ImageFrame{TPixel}.cs
  3. 3
      src/ImageSharp/Memory/BufferExtensions.cs
  4. 6
      src/ImageSharp/Memory/MemoryManagerExtensions.cs
  5. 3
      src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs
  6. 3
      src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs
  7. 4
      src/ImageSharp/Quantizers/Quantize.cs

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

@ -4,12 +4,11 @@
using System; using System;
using System.IO; using System.IO;
using SixLabors.ImageSharp.IO; using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Bmp namespace SixLabors.ImageSharp.Formats.Bmp
{ {
using SixLabors.ImageSharp.Memory;
/// <summary> /// <summary>
/// Image encoder for writing an image to a stream as a Windows bitmap. /// Image encoder for writing an image to a stream as a Windows bitmap.
/// </summary> /// </summary>

3
src/ImageSharp/Image/ImageFrame{TPixel}.cs

@ -7,6 +7,7 @@ using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading.Tasks; using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Helpers;
using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.MetaData; using SixLabors.ImageSharp.MetaData;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
@ -14,8 +15,6 @@ using SixLabors.Primitives;
namespace SixLabors.ImageSharp namespace SixLabors.ImageSharp
{ {
using SixLabors.ImageSharp.Helpers;
/// <summary> /// <summary>
/// Represents a single frame in a animation. /// Represents a single frame in a animation.
/// </summary> /// </summary>

3
src/ImageSharp/Memory/BufferExtensions.cs

@ -2,12 +2,11 @@
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
using System; using System;
using System.IO;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp.Memory namespace SixLabors.ImageSharp.Memory
{ {
using System.IO;
internal static class BufferExtensions internal static class BufferExtensions
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]

6
src/ImageSharp/Memory/MemoryManagerExtensions.cs

@ -1,7 +1,7 @@
namespace SixLabors.ImageSharp.Memory using SixLabors.Primitives;
{
using SixLabors.Primitives;
namespace SixLabors.ImageSharp.Memory
{
/// <summary> /// <summary>
/// Extension methods for <see cref="MemoryManager"/>. /// Extension methods for <see cref="MemoryManager"/>.
/// </summary> /// </summary>

3
src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs

@ -5,14 +5,13 @@ using System;
using System.Numerics; using System.Numerics;
using System.Threading.Tasks; using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Helpers;
using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives; using SixLabors.Primitives;
namespace SixLabors.ImageSharp.Processing.Processors namespace SixLabors.ImageSharp.Processing.Processors
{ {
using SixLabors.ImageSharp.Helpers;
/// <summary> /// <summary>
/// An <see cref="IImageProcessor{TPixel}"/> to apply an oil painting effect to an <see cref="Image{TPixel}"/>. /// An <see cref="IImageProcessor{TPixel}"/> to apply an oil painting effect to an <see cref="Image{TPixel}"/>.
/// </summary> /// </summary>

3
src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs

@ -4,14 +4,13 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Helpers;
using SixLabors.ImageSharp.Memory; using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives; using SixLabors.Primitives;
namespace SixLabors.ImageSharp.Processing.Processors namespace SixLabors.ImageSharp.Processing.Processors
{ {
using SixLabors.ImageSharp.Helpers;
/// <summary> /// <summary>
/// Provides methods that allow the flipping of an image around its center point. /// Provides methods that allow the flipping of an image around its center point.
/// </summary> /// </summary>

4
src/ImageSharp/Quantizers/Quantize.cs

@ -4,13 +4,12 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Quantizers; using SixLabors.ImageSharp.Quantizers;
namespace SixLabors.ImageSharp namespace SixLabors.ImageSharp
{ {
using SixLabors.ImageSharp.Memory;
/// <summary> /// <summary>
/// Extension methods for the <see cref="Image{TPixel}"/> type. /// Extension methods for the <see cref="Image{TPixel}"/> type.
/// </summary> /// </summary>
@ -78,7 +77,6 @@ namespace SixLabors.ImageSharp
int i = x + yy; int i = x + yy;
TPixel color = quantized.Palette[Math.Min(palleteCount, quantized.Pixels[i])]; TPixel color = quantized.Palette[Math.Min(palleteCount, quantized.Pixels[i])];
row[x] = color; row[x] = color;
//pixels[x, y] = color;
} }
}); });

Loading…
Cancel
Save