Browse Source

#542: define debuggerDisplay of ColorStop,

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

Loading…
Cancel
Save