Update hack for 1bpc + DeviceGray

This commit is contained in:
BobLd 2025-07-19 21:01:12 +01:00
parent 6a06452103
commit ff4e763192

View File

@ -79,7 +79,7 @@
// Enumerate bits in bitsPerComponent-sized chunks from MSB to LSB, masking on the appropriate bits // Enumerate bits in bitsPerComponent-sized chunks from MSB to LSB, masking on the appropriate bits
for (int i = end; i >= 0; --i) for (int i = end; i >= 0; --i)
{ {
unpacked[u++] = (byte)((b >> i) & right) == 1 ? byte.MinValue : byte.MaxValue; unpacked[u++] = (byte)((b >> i) & right) == 1 ? byte.MaxValue : byte.MinValue;
} }
} }