https://bugs.winehq.org/show_bug.cgi?id=50636
Bug ID: 50636 Summary: Reading indexed bitmap wrongly returns 32bit instead of 8bit Product: Wine Version: 6.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: eri0onpm@gmail.com Distribution: ---
When using C# and .NET 4.5, the Image.GetPixelFormatSize method returns 32 for an indexed bitmap that should return 8
https://docs.microsoft.com/en-us/dotnet/api/system.drawing.image.getpixelfor...
I think this should have been fixed by commit ee6dd81e922145ca7b70cb1de01a8795119b824b from Dmitry Timoshkov but I am unsure if this commit is on Wine 6.
https://bugs.winehq.org/show_bug.cgi?id=50636
--- Comment #1 from er eri0onpm@gmail.com --- And a lot of the handling of the Bitmap class of dot net seems to go to wine/dlls/gdiplus/image.c , are there known issues there with indexed bitmaps?
https://bugs.winehq.org/show_bug.cgi?id=50636
--- Comment #2 from er eri0onpm@gmail.com --- Using Wine built from the current source, I can't reproduce the error anymore, so my guess is this got fixed somewhere between Wine 6.0 and now.