Replies: 1 comment 1 reply
-
In that case, you'll use the Slint's software renderer. What I suggest doing is to render into a 8bit grayscale pixel, and then convert to 4bit as you send the pixel to the screen. For example: this is the backend for a monochrome display: |
Beta Was this translation helpful? Give feedback.
-
Is it possible to define the dataformat / range for colors?
If we want to use a E-Ink display, that only supports 16 grayscales, i don't want to specify all kinds of colors within the ui and have to map them to different gray scales in the platform backend.
This has also a import on memory footprint, 16 grayscales fit in a u8, or even 4 bits, RGB colors usally use much more memory for each pixel.
Beta Was this translation helpful? Give feedback.
All reactions