Very recently colours are wrong on win32. It happens only when using -dUseFPImage. I…
Mattias Gaertner wrote 15 lines
That someone was me ;-).
Show quoted text 5 lines
Monochrome (and 4-bit) images have their pixels from high to low in win32. So bit 7 is pixel 0, bit 0 is pixel 7. I assume something similar holds for 4-bit images.
That means a further IF in the Get/SetPixel function, which is a very time critical function. I suggest to implement one all rounder function plus several optimized functions for commong formats. The Get/SetPixel then uses an event.
Good idea.
ToDo: - first you have to find out the byte and bit order under win32. (Draw some very simple images (5x5, 8x8, 13x13, 18x18, 26x26 and 34x34) with a few lines.
For monochrome images, I explained above. I believe there is no problem with byte order. Byte order is parameterized already anyway.
- fix the Get/SetPixel code (with some IFDEFs).
Okay will do.
- you have to try 15/16/24/32 bit depths of the window dektop. - then we can add the missing BitOrder/ByteOrder to the TRawImageDescription
We'll need a bitorder I guess.
- then we can implement the all rounder functions. - then we add the optimized functions. I hope, this was clear. If not, just mail.
Very clear :-). I'll try some coding, commit and report here, then you can take a look.
Micha.
