Closed fsender closed 5 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
/reopen
There are 3 different issues. I'm developing a library for E-paper displays. It supports 16-level grey display for most common E-paper displays. I hope you can pay more attention to greyscale bitmaps and sprites.
Firstly. Setting buffer for static greyscale bitmaps.
I tried using
setBuffer
function for my static 8-bpp greyscale bitmap array. Bit it was always converted toRGB332
colour format. Now I have to edit your library to show a static greyscale bitmap.Now there is an available function prototype for
setBuffer
at file LGFX_Sprite.hpp line 155.Could you add a function like this?
Next. My ESP32 Halted when copying from an RGB sprite to a 4bpp greyscale sprite.
When copying from an RGB565 or RGB888 sprite to a grey bitmap (1bpp, 2bpp and 4bpp) the library halted at file LGFX_Sprite.cpp line 481: in
void Panel_Sprite::writeImage(uint_fast16_t x, uint_fast16_t y, uint_fast16_t w, uint_fast16_t h, pixelcopy_t* param, bool)
fp_copy is nullptr.my destination sprite is greyscale 4bit color type. Source sprite is RGB565 color type.
At file pixelcopy.hpp line 115.
I think this nullptr is the reason. Please add pixel copying support for 1bpp,2bpp and 4bpp bitmaps and sprites.
Finally.
Why do not you add a method to get the width and the height of an image? Even if the image is a file or a web url. Some projects need it. The function prototype may be like this below:
Thanks.