Browse Source

Comment TODO on palette changes.

pull/741/head
James Jackson-South 7 years ago
parent
commit
0255c4c911
  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)
{
// 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];
Span<byte> constantsBytes = MemoryMarshal.Cast<Rgba32, byte>(palette.AsSpan());

Loading…
Cancel
Save