2 bit dithered images

This commit is contained in:
interfisch 2022-11-11 21:04:25 +01:00
parent bb24beb9e3
commit 15e21f74cc
4 changed files with 1007 additions and 1004 deletions

BIN
imageconverter/4gray.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 B

View File

@ -3,6 +3,9 @@ import math
import argparse
import os.path
#for a 2-bit dithered grayscale image use:
# convert testimage.png -dither FloydSteinberg -define dither:diffusion-amount=85% -remap 4gray.png -compress RLE -define png:color-type=6 output.png
def swapBits(number, nbits):
if nbits==2:

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,7 @@ void setup()
Paint_SelectImage(GSImage);
Paint_SetScale(4);
Paint_DrawBitMap(gImage_4in2);
Paint_DrawBitMap(gImage_4in2); //to convert 2-bit gray image to array: convert testimage.png -dither FloydSteinberg -define dither:diffusion-amount=85% -remap 4gray.png -compress RLE BMP3:output.bmp
EPD_4IN2_4GrayDisplay(GSImage);
DEV_Delay_ms(10000);