Difference between revisions of "Template:E-Paper HAT (F) Picture Production"

From Waveshare Wiki
Jump to: navigation, search
Line 1: Line 1:
 
=Picture Production=
 
=Picture Production=
Provides bmp picture production for E-Paper HAT (F)
+
Provides bmp picture production for Multi-color e-Paper
 
==Preparation==
 
==Preparation==
 
Required software: Adobe PhotoShop CC, Painting
 
Required software: Adobe PhotoShop CC, Painting

Revision as of 09:05, 11 August 2022

Picture Production

Provides bmp picture production for Multi-color e-Paper

Preparation

Required software: Adobe PhotoShop CC, Painting

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".
Xcolor sheet02.jpg

1. New Photoshop project set the width and height according to the actual resolution of the e-Paper display, the color mode uses RGB. The resolution of this module is 800*480. Change the width to 800 pixels and the height to 480 pixels.

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 seven-color pictures, load N-color. act, then click Save and save as a gif file. Then convert it into BMP format and use it on this module.
For four-color images, load 4-color. act, then click Save and save as a gif file. Then convert it into BMP format and use it on this module.

Pica4.png

6. Open the gif file with Paint and save it as a 24-bit BMP image. Pica7.png

7. By now, the color picture available for this module has been made, and it can be put into the SD card of the Raspberry Pi or e-Paper Shield module for use.

Image Data Conversion

Download the Program

Note: Theis application is provided for your convenience and open source, our company does not provide technical support for it.

How to Convert

  • Put the prepared picture and the corresponding "exe" application in the same folder, and you can put multiple pictures at the same time.
  • Drag and drop the picture in the "exe" file, and the program will convert the picture into "a .c" file with a fixed name.
  • Double-click the "cmd" file, and the program will convert all the pictures in the folder that meet the size to generate a ".c" file with the corresponding name.