Comments (6)
I understand exactly what you mean, and I was originally going to implement it as well.
However, if you implement it, the template will become larger and the binary size will become huge. I believe this implementation was a failure.
from lovyangfx.
I actually have quite a few problems with the current LovyanGFX V1 implementation, and am considering creating a new V2 design from HAL. So we don't want to spend time supporting V1.
from lovyangfx.
Just add a function prototype like this. I think it takes just a few bytes. However, most of projects do not use this prototype.
from lovyangfx.
By the way, if you copy an RGB565 image to a palette image, what kind of result do you expect to get?
If I were to implement this, I would simply allocate the low byte of the bit string.
If you want to automatically select a palette that reproduces the colors of the original image, that would require a fairly tedious implementation.
from lovyangfx.
It is not easy to copy a normal image like RGB565, RGB888 etc to a palette image. But it is easier to copy to a 1bpp/2bpp/4bpp greyscale image.
I will create my own transform function if I must copy from an normal image to a palette image.
So, I just hope to add a prototype for creating a static sprite. You do not need to do anything else for V1.
void setBuffer(void* buffer, int32_t w, int32_t h, color_depth_t bpp = rgb565_2Byte);
Source code reference previous text.
from lovyangfx.
Use this setBuffer
function, I'll create a static sprite with any color_depth_t
.
from lovyangfx.
Related Issues (20)
- drawEllipseとfillEllipseの、rxとryの一方だけが0のときの挙動について HOT 2
- Freeze using tft.getTouch(...) with a FT5x06 I2C capacitive touch screen HOT 3
- I need support for the CYD board (cheap yellow display) ESP32-2432S028R HOT 8
- Lilygo AMOLED series HOT 20
- Support for MakerFab 2.1 inch round MaTouch ESP32-S3 based controller HOT 3
- LilyGo AMOLED Series HOT 1
- Expose XPT2046 ability to measure VBAT HOT 4
- Endianness Inconsistency HOT 2
- Failing to build after updating platformio HOT 2
- Help me , ST7735S cannot drive 80*160 screen normally
- Color Inversion Not Working Correctly with ST7789 Display. HOT 2
- build error with cross-compiler when using SDL2 HOT 6
- Add M5Stack_Fire HOT 1
- Support for ESP32-S3-Box v3 HOT 35
- Screen tearing when using a Makerfabs Matouch 4.0" 480x480 parallel LCD screen HOT 7
- Support ST7701s IPS TFT 5 inch 854x480 RGB+SPI With ESP32-S3 HOT 15
- ST7789 cannot get it to work HOT 3
- tft.getTouch(&touchX, &touchY); freeze loop() HOT 3
- Support for 4.3" RGB Interface HOT 4
- Shimering effect with SSD1963 HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lovyangfx.