From 59c39f2da7d2cb83995f93e619e37d6a96d36e0c Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 20 Sep 2016 22:35:00 +1000 Subject: [PATCH] Fix spacing Former-commit-id: 54109ad6669530b4101bdbc2cffa7164d8f768a0 Former-commit-id: cf9e89328f261ddde264dcd0a00785104e4344ba Former-commit-id: 2e5830ec3f13f47292f60da845d9875b6b8768ee --- src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs b/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs index fb3e2df6fc..8e959155cc 100644 --- a/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs +++ b/src/ImageProcessorCore/Formats/Png/PngEncoderCore.cs @@ -503,6 +503,7 @@ namespace ImageProcessorCore.Formats TColor[] palette = quantized.Palette; int pixelCount = palette.Length; List transparentPixels = new List(); + // Get max colors for bit depth. int colorTableLength = (int)Math.Pow(2, header.BitDepth) * 3; byte[] colorTable = new byte[colorTableLength];