Browse Source

Comment TODO on palette changes.

af/merge-core
James Jackson-South 8 years ago
parent
commit
33436492b4
  1. 3
      src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs

3
src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs

@ -746,6 +746,9 @@ namespace SixLabors.ImageSharp.PixelFormats
private static TPixel[] GetPalette(Rgba32[] palette) private static TPixel[] GetPalette(Rgba32[] palette)
{ {
// TODO: This should be the length only.
// We need to fix and update tests/reference images.
// If someone wants transparency they should add it to the palette.
var converted = new TPixel[palette.Length + 1]; var converted = new TPixel[palette.Length + 1];
Span<byte> constantsBytes = MemoryMarshal.Cast<Rgba32, byte>(palette.AsSpan()); Span<byte> constantsBytes = MemoryMarshal.Cast<Rgba32, byte>(palette.AsSpan());

Loading…
Cancel
Save