Write 1D/2D Run-Length Encoded Scan Line

\i D N w byte::prev_line_offset word::no_of_pixels word::no_of_rle_bytes byte::b0 ...

Parameter Type Range Description
prev_line_offset signed byte -8 ... 8 y-offset of scanline referred to (0 = none = 1D encoded)
no_of_pixels word 1 ... display width number of pixels to write
no_of_rle_bytes word 2 ... display width + 2 length of encoded data in bytes
b0 ... bytes 0x00 ... 0xFF run-length encoded data

Writes a horizontal scan line consisting of no_of_pixels pixels onto the screen. The no_of_rle_bytes long data is sent with run-length encoding.

Note

There is also a local 2D Run-Length Encoding Application Note version available which is named as 2D RLE Application Note.pdf, and can be found under the iLCD Manager XE installation path within the Documentation directory. Other useful pdf documents can be downloaded on the www.demmel.com/en/service/downloads.htm website.

Response: [ACK]

Example

\iDNw\0\D50\D3\xB1\X1F00

This example will write 50 blue pixels to the screen, starting from the current cursor position. The encoded data consists of 3 bytes: 0xB1 indicates a horizontal repetition (bit 7 set) of 50 pixels and 0x1F00 is the 16-bit color value for pure blue.

Not supported by: DPC3020, DPC2060, DPC10xx

See also:

Read 1D/2D Run-Length Encoded Scan Line
Write Scan Line
Read Scan Line
16-Bit Color Values