Browse Source

Fixing stylecop warnings on whitespace and usings.

af/merge-core
Olivia 9 years ago
parent
commit
af018991e2
  1. 1
      src/ImageSharp/Colors/PackedPixel/IPackedPixel.cs
  2. 4
      src/ImageSharp/Drawing/Brushes/Brushes`2.cs
  3. 6
      src/ImageSharp/Drawing/Brushes/PatternBrush`2.cs
  4. 1
      src/ImageSharp/Drawing/Draw.cs
  5. 8
      src/ImageSharp/Drawing/Processors/DrawPathProcessor.cs
  6. 2
      src/ImageSharp/Drawing/Processors/FillShapeProcessor.cs
  7. 2
      src/ImageSharp/Drawing/Shapes/LinearPolygon.cs

1
src/ImageSharp/Colors/PackedPixel/IPackedPixel.cs

@ -6,6 +6,7 @@
namespace ImageSharp
{
using System;
/// <summary>
/// An interface that represents a packed pixel type.
/// </summary>

4
src/ImageSharp/Drawing/Brushes/Brushes`2.cs

@ -3,10 +3,10 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
using System;
namespace ImageSharp.Drawing.Brushes
{
using System;
/// <summary>
/// A collection of methods for creating generic brushes.
/// </summary>

6
src/ImageSharp/Drawing/Brushes/PatternBrush`2.cs

@ -5,10 +5,10 @@
namespace ImageSharp.Drawing.Brushes
{
using System;
using System.Numerics;
using Processors;
using System;
/// <summary>
/// Provides an implementation of a pattern brush for painting patterns.
@ -30,12 +30,12 @@ namespace ImageSharp.Drawing.Brushes
/// 0
/// 0
/// </para>
/// Warning when use array initializer across multiple lines the bools look inverted i.e.
/// Warning when use array initializer across multiple lines the bools look inverted i.e.
/// new bool[,]{
/// {true, false, false},
/// {false,true, false}
/// }
/// would be
/// would be
/// 10
/// 01
/// 00

1
src/ImageSharp/Drawing/Draw.cs

@ -220,6 +220,7 @@ namespace ImageSharp
{
return source.DrawPolygon(pen, new Polygon(new LinearLineSegment(points)), options);
}
/// <summary>
/// Draws the provided Points as a closed Linear Polygon with the provided Pen.
/// </summary>

8
src/ImageSharp/Drawing/Processors/DrawPathProcessor.cs

@ -34,7 +34,7 @@ namespace ImageSharp.Drawing.Processors
private readonly IPath[] paths;
private readonly RectangleF region;
private readonly GraphicsOptions options;
/// <summary>
/// Initializes a new instance of the <see cref="DrawPathProcessor{TColor, TPacked}" /> class.
/// </summary>
@ -56,7 +56,7 @@ namespace ImageSharp.Drawing.Processors
: this(pen, new[] { path }, options)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="DrawPathProcessor{TColor, TPacked}" /> class.
/// </summary>
@ -134,10 +134,10 @@ namespace ImageSharp.Drawing.Processors
currentPoint.X = offsetX;
currentPoint.Y = offsetY;
var dist = Closest(currentPoint);
var dist = this.Closest(currentPoint);
var color = applicator.GetColor(dist);
var opacity = this.Opacity(color.DistanceFromElement);
if (opacity > Epsilon)

2
src/ImageSharp/Drawing/Processors/FillShapeProcessor.cs

@ -73,7 +73,7 @@ namespace ImageSharp.Drawing.Processors
{
polyStartY = 0;
}
using (PixelAccessor<TColor, TPacked> sourcePixels = source.Lock())
using (IBrushApplicator<TColor, TPacked> applicator = this.fillColor.CreateApplicator(rect))
{

2
src/ImageSharp/Drawing/Shapes/LinearPolygon.cs

@ -25,7 +25,7 @@ namespace ImageSharp.Drawing.Shapes
{
this.innerPolygon = new Polygon(new LinearLineSegment(points));
}
/// <summary>
/// Gets the bounding box of this shape.
/// </summary>

Loading…
Cancel
Save