Browse Source

#542: define debuggerDisplay of ColorStop,

af/merge-core
Unknown 8 years ago
parent
commit
48f7a3daba
  1. 8
      src/ImageSharp.Drawing/Processing/Drawing/Brushes/LinearGradientBrush.cs

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

@ -1,8 +1,7 @@
using System;
using System.Diagnostics;
using System.Numerics;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.PixelFormats.PixelBlenders;
using SixLabors.Primitives;
@ -49,6 +48,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing.Brushes
/// <summary>
/// A struct that defines a single color stop.
/// </summary>
[DebuggerDisplay("ColorStop({Ratio} -> {Color}")]
public struct ColorStop
{
/// <summary>
@ -152,8 +152,8 @@ namespace SixLabors.ImageSharp.Processing.Drawing.Brushes
/// <summary>
/// Gets the color for a single pixel
/// </summary>
/// <param name="x">The x.</param>
/// <param name="y">The y.</param>
/// <param name="x">The x coordinate.</param>
/// <param name="y">The y coordinate.</param>
internal override TPixel this[int x, int y]
{
get

Loading…
Cancel
Save