Skip to content

How to render sleep-BMPs without dithering in 2-bit mode? #931

@allgoewer

Description

@allgoewer

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

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions