Intelligent pictures (format 4) and direction-aware picture order
Format 4 decoded from Editor output: control words of eight 4-bit ops (runs up to 13, 12-bit long runs, literal blocks) over 8 colour slots, plus a run-length 7-bit alpha section. The encoder reproduces all 28 Editor samples byte for byte and the Editor keeps our pictures as is. Pictures are stored rotated by the display direction, byte 0 of N.i is 0x0A + direction; this applies to format 0 too. add_picture now writes the right format and order for the project; the renderer decodes format 4 and blends alpha. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a93cb58b96
commit
193bcd5d97
8 files changed
+301
-56
No files matched your search
@@ -33,8 +33,8 @@ Back up the user's file first (copy it) unless they said not to; edits write in
|
||||
`direction` and `encoding`.
|
||||
- Text needs a font: `font` is a font id. A new project has **no fonts** -- call `add_font`
|
||||
first (height in px; no TrueType path = bundled CC0 font). `txt_maxl` must be >= the text length.
|
||||
- Pictures: `add_picture` returns an id for `pic` / `picc` (crop) / `pic2` etc. Basic-series
|
||||
displays only (Intelligent compressed pictures are not supported yet).
|
||||
- Pictures: `add_picture` returns an id for `pic` / `picc` (crop) / `pic2` etc. Works for Basic
|
||||
and Intelligent displays (Intelligent keeps PNG transparency).
|
||||
- Event code is Nextion script, one line per list item, e.g. `["page settings"]`,
|
||||
`["n0.val++", "t0.txt=\"hi\""]`. Events: `codesdown` (press), `codesup` (release),
|
||||
`codesload` / `codesloadend` (page pre/post-initialize), `codesunload`, `codestimer`, `codesslide`.
|
||||
|
||||
Reference in new issue
Block a user