Skip to content

Commit 497b052

Browse files
committed
SixLabors#542: define debuggerDisplay of ColorStop,
1 parent deb6cde commit 497b052

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ImageSharp.Drawing/Processing/Drawing/Brushes/LinearGradientBrush.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using System;
2+
using System.Diagnostics;
23
using System.Numerics;
34

4-
using SixLabors.ImageSharp.Advanced;
5-
using SixLabors.ImageSharp.Memory;
65
using SixLabors.ImageSharp.PixelFormats;
76
using SixLabors.ImageSharp.PixelFormats.PixelBlenders;
87
using SixLabors.Primitives;
@@ -49,6 +48,7 @@ public BrushApplicator<TPixel> CreateApplicator(ImageFrame<TPixel> source, Recta
4948
/// <summary>
5049
/// A struct that defines a single color stop.
5150
/// </summary>
51+
[DebuggerDisplay("ColorStop({Ratio} -> {Color}")]
5252
public struct ColorStop
5353
{
5454
/// <summary>
@@ -152,8 +152,8 @@ public LinearGradientBrushApplicator(
152152
/// <summary>
153153
/// Gets the color for a single pixel
154154
/// </summary>
155-
/// <param name="x">The x.</param>
156-
/// <param name="y">The y.</param>
155+
/// <param name="x">The x coordinate.</param>
156+
/// <param name="y">The y coordinate.</param>
157157
internal override TPixel this[int x, int y]
158158
{
159159
get

0 commit comments

Comments
 (0)