Skip to content

Commit 87bd03d

Browse files
committed
Update hack for 1bpc + DeviceGray
1 parent 6a06452 commit 87bd03d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UglyToad.PdfPig/Images/ColorSpaceDetailsByteConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private static Span<byte> UnpackComponents(Span<byte> input, int bitsPerComponen
7979
// Enumerate bits in bitsPerComponent-sized chunks from MSB to LSB, masking on the appropriate bits
8080
for (int i = end; i >= 0; --i)
8181
{
82-
unpacked[u++] = (byte)((b >> i) & right) == 1 ? byte.MinValue : byte.MaxValue;
82+
unpacked[u++] = (byte)((b >> i) & right) == 1 ? byte.MaxValue : byte.MinValue;
8383
}
8484
}
8585

0 commit comments

Comments
 (0)