2 bit dithered images
This commit is contained in:
parent
bb24beb9e3
commit
15e21f74cc
Binary file not shown.
After Width: | Height: | Size: 519 B |
|
@ -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:
|
||||
|
|
2006
src/ImageData.cpp
2006
src/ImageData.cpp
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue