E-Paper Floyd-Steinberg

From Waveshare Wiki
Jump to: navigation, search

Introduction

  • Floyd-Steinberg dithering algorithm is very suitable for showing rich layering when color is less. More color combinations for better shadow rendering of the original image. It is especially suitable for various usage scenarios of e-ink screens.
  • The following will introduce how to convert ordinary pictures into Floyd-Steinberg scatter plots.
  • If you are interested in the actual algorithm, you can read about our algorithm porting on ESP32 link hereand ESP8266 link here

Operating Steps

Preparation: Download color sheet to PC, and unzip to get the file as shown below, we are going to use "N-color.act." or "4-color.act".
Photoshop-Floyd-Steinberg00.jpg
1. Create a Photoshop project, set the width and height according to the actual resolution of the e-ink screen, the color mode uses RGB color. Here we use 7.5inch e-paper 800*480 as an example for demonstration. If you are using a screen of other sizes, you can modify the corresponding resolution.

Color3.png

2. Prepare the corresponding picture, copy it into the project, and adjust the parameters such as size and contrast (similar to the steps for processing pictures in general Photoshop).

Pica.png

3. Select File->Save for Web and Devices.

Pica5.png

4. Select the color table as shown below. Load the color table provided in Preparation.
Pica6.png

5. For black and white pictures, load Black-White.act, then click Save and save as a gif file. For different applications, it can be converted to JPG or BMP and other image formats later.

Pica04.jpg 6. Other color sheets, display effects as shown below:
Black-White-Red. act--corresponding to Black, White, Red; and three-color E-ink.
Pic5.jpg
Black-White-Yellow.act--corresponding to Black, White, Yellow; and three-color E-ink.
Pic6.jpg
N-color.act---corresponding to Black and White, Red, Green, Blue, Yellow and Orange, seven-color electronic ink screen.
PhotoSteinberg06.jpg