From 6e7ec899eb2b3202e651efb3873613c8744389d2 Mon Sep 17 00:00:00 2001 From: Hel Gibbons <50950368+helgibbons@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:56:15 +0100 Subject: [PATCH] PicoGraphics: document `dither=False` --- micropython/modules/picographics/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/micropython/modules/picographics/README.md b/micropython/modules/picographics/README.md index bd783a0d..e2e8ad8f 100644 --- a/micropython/modules/picographics/README.md +++ b/micropython/modules/picographics/README.md @@ -562,7 +562,7 @@ j = jpegdec.JPEG(display) j.open_file("filename.jpeg") # Decode the JPEG -j.decode(0, 0, jpegdec.JPEG_SCALE_FULL) +j.decode(0, 0, jpegdec.JPEG_SCALE_FULL, dither=True) # Display the result display.update() @@ -579,3 +579,4 @@ The arguments for `decode` are as follows: 1. Decode X - where to place the decoded JPEG on screen 2. Decode Y 3. Flags - one of `JPEG_SCALE_FULL`, `JPEG_SCALE_HALF`, `JPEG_SCALE_QUARTER` or `JPEG_SCALE_EIGHTH` +4. If you want to turn off dither altogether, try `dither=False`. This is useful if you want to pre-dither your images or for artsy posterization effects.