-
-
Notifications
You must be signed in to change notification settings - Fork 352
Description
So,
to preface, this is more of a question and less of a bug.
I've been trying to get a little bit more control on how my custom sleep screen is rendered.
Notably, I would like to draw 2-bit bmp without dithering.
I checked Bitmap.cpp and it seems like crosspoint already does not try to apply dithering IF and only IF the file is a 1-bit or 2-bit bitmap, see
crosspoint-reader/lib/GfxRenderer/Bitmap.cpp
Line 145 in d6f38d4
| if (bpp > 2 && dithering) { |
The problem is that, if I understand correctly, 2-bit bitmaps are not really a thing, in the sense that they are not standard-compliant, right?
It's either 1-bit or then 4-bit with a corresponding LUT for the brightness values.
The annoying thing here is that tools like ImageMagick do not support such a 2-bit BMP.
You guys got a recommendation for a tool, or should I just whip up my own encoder to generate such a 2-bit BMP?