FixIssue576-AddPng-WithTransparency SMask hardcoded as 8 bitsPerComponent not 1. (#577)

This commit is contained in:
Fred Natzke
2023-03-26 02:30:02 +10:00
committed by GitHub
parent 3dd9a5685d
commit 10fa9eceb9

View File

@@ -666,7 +666,7 @@
{NameToken.Width, widthToken},
{NameToken.Height, heightToken},
{NameToken.ColorSpace, NameToken.Devicegray},
{NameToken.BitsPerComponent, new NumericToken(1)},
{NameToken.BitsPerComponent, new NumericToken(8)},
{NameToken.Decode, new ArrayToken(new IToken[] { new NumericToken(0), new NumericToken(1) })},
{NameToken.Length, new NumericToken(compressedSmask.Length)},
{NameToken.Filter, NameToken.FlateDecode}