mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-24 16:53:20 +08:00
FixIssue576-AddPng-WithTransparency SMask hardcoded as 8 bitsPerComponent not 1. (#577)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user