Browse Source

Refactoring DrawPathProcessor to use a const epsilon.

pull/60/head
Olivia 9 years ago
parent
commit
4a8d9e2727
  1. 5
      src/ImageSharp/Drawing/Processors/DrawPathProcessor.cs

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

@ -9,7 +9,7 @@ namespace ImageSharp.Drawing.Processors
using System.Linq;
using System.Numerics;
using System.Threading.Tasks;
using Common;
using ImageSharp.Processors;
using Paths;
using Pens;
@ -27,7 +27,6 @@ namespace ImageSharp.Drawing.Processors
{
private const float AntialiasFactor = 1f;
private const int PaddingFactor = 1; // needs to been the same or greater than AntialiasFactor
private const float Epsilon = 0.001f;
private readonly IPen<TColor> pen;
private readonly IPath[] paths;
@ -138,7 +137,7 @@ namespace ImageSharp.Drawing.Processors
var opacity = this.Opacity(color.DistanceFromElement);
if (opacity > Epsilon)
if (opacity > Constants.Epsilon)
{
int offsetColorX = x - minX;

Loading…
Cancel
Save