From 0255c4c911d862cb55c6370aa818ccd34cdf6956 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 28 Oct 2018 09:22:45 +0000 Subject: [PATCH] Comment TODO on palette changes. --- src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs index 24ddfba7b..a757a393e 100644 --- a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs +++ b/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 constantsBytes = MemoryMarshal.Cast(palette.AsSpan());