Page 1 of 1

FrameBuffer.get_rect_raw(x,y,w,h) for mono displays alpha test

Posted: Sun Sep 26, 2021 10:50 pm
by volkerjaenisch
Dear MP Developers!

Here
https://github.com/Inqbus/micropython/tree/get_rect_raw

you will find a new function for MP FrameBuffer: get_rect_raw(x, y, w, h)

The function get_rect_raw will return all bytes striven by the given rectangle in the byte order/orientation of the framebuffer.

The aim of get_rect_raw is to make incremental updates on e-ink display faster.

Extensive testing is applied.

Only Mono displays are supported, so far.

This is my first contribution to MP, so please be hard to me. Point me to any glitch or error you find in my code.

Cheers,
Volker