Browse Source

Remove a redundant check for the paint boundary

af/merge-core
Xavier Cho 7 years ago
parent
commit
75209ca205
  1. 5
      src/ImageSharp.Drawing/Processing/PathGradientBrush.cs

5
src/ImageSharp.Drawing/Processing/PathGradientBrush.cs

@ -231,11 +231,6 @@ namespace SixLabors.ImageSharp.Processing
return new Color(this.centerColor).ToPixel<TPixel>();
}
if (!this.path.Contains(point))
{
return Color.Transparent.ToPixel<TPixel>();
}
Vector2 direction = Vector2.Normalize(point - this.center);
PointF end = point + (PointF)(direction * this.maxDistance);

Loading…
Cancel
Save