Browse Source

cleanup drawing namespace

pull/299/head
Scott Williams 9 years ago
parent
commit
281c7366cb
  1. 3
      src/ImageSharp.Drawing/Brushes/IBrush.cs
  2. 1
      src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs
  3. 1
      src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs
  4. 2
      src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs
  5. 1
      src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs
  6. 1
      src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs
  7. 1
      src/ImageSharp.Drawing/Pens/IPen.cs
  8. 1
      src/ImageSharp.Drawing/Pens/Pens.cs
  9. 21
      src/ImageSharp.Drawing/PointInfo.cs
  10. 2
      src/ImageSharp.Drawing/Processors/FillProcessor.cs
  11. 2
      src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs
  12. 1
      tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs

3
src/ImageSharp.Drawing/Brushes/IBrush.cs

@ -1,11 +1,12 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
namespace SixLabors.ImageSharp.Drawing
namespace SixLabors.ImageSharp.Drawing.Brushes
{
/// <summary>
/// Brush represents a logical configuration of a brush which can be used to source pixel colors

1
src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs

@ -2,6 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

1
src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs

@ -3,6 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs

@ -5,7 +5,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Drawing.Processors
namespace SixLabors.ImageSharp.Drawing.Brushes.Processors
{
/// <summary>
/// primitive that converts a point in to a color for discovering the fill color based on an implementation

1
src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs

@ -3,6 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

1
src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs

@ -3,6 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

1
src/ImageSharp.Drawing/Pens/IPen.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;

1
src/ImageSharp.Drawing/Pens/Pens.cs

@ -1,6 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Drawing.Pens

21
src/ImageSharp.Drawing/PointInfo.cs

@ -1,21 +0,0 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Drawing
{
/// <summary>
/// Returns details about how far away from the inside of a shape and the color the pixel could be.
/// </summary>
public struct PointInfo
{
/// <summary>
/// The distance along path
/// </summary>
public float DistanceAlongPath;
/// <summary>
/// The distance from path
/// </summary>
public float DistanceFromPath;
}
}

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

@ -5,6 +5,8 @@ using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Drawing;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;

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

@ -5,6 +5,8 @@ using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Drawing;
using SixLabors.ImageSharp.Drawing.Brushes;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;

1
tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs

@ -10,6 +10,7 @@ using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.PixelFormats;
using Moq;
using Xunit;
using SixLabors.ImageSharp.Drawing.Brushes;
namespace SixLabors.ImageSharp.Tests.Drawing
{

Loading…
Cancel
Save