Browse Source

Use properties for true Lazy.

js/color-alpha-handling^2
James Jackson-South 5 years ago
parent
commit
bf9f25a142
  1. 5
      src/ImageSharp/ColorSpaces/Companding/SRgbCompanding.cs

5
src/ImageSharp/ColorSpaces/Companding/SRgbCompanding.cs

@ -69,8 +69,9 @@ namespace SixLabors.ImageSharp.ColorSpaces.Companding
return result;
});
private static readonly float[] ExpandTable = LazyExpandTable.Value;
private static readonly float[] CompressTable = LazyCompressTable.Value;
private static float[] ExpandTable => LazyExpandTable.Value;
private static float[] CompressTable => LazyCompressTable.Value;
/// <summary>
/// Expands the companded vectors to their linear equivalents with respect to the energy.

Loading…
Cancel
Save