(Note that attached image is .png, because .bmp is not an acceptable format here.)
This is my simplistic fix:
// inner loop in TransferData1(PixData pixData, BitmapData imgData)
for (int x = 0; x < width; x++)
{
byte pixVal = (byte)PixData.GetDataByte(pixLine, x);
// simplistic fix - invert the bits
if (imgData.PixelFormat == PixelFormat.Format1bppIndexed)
{
pixVal = (byte) (pixVal ^ 0xff);
}
imgLine[x] = pixVal;
}
I did not investigate any further what the root cause is, and this fix is certainly sub-optimal. It may adversely affect images that convert fine with the current code.
Greetings,
This issue is similar to #72.
This is my input image:
This is the output I get:
(Note that attached image is .png, because .bmp is not an acceptable format here.)
This is my simplistic fix:
I did not investigate any further what the root cause is, and this fix is certainly sub-optimal. It may adversely affect images that convert fine with the current code.
Thanks. tjk:)