atomic14 / diy-esp32-epub-reader

An ESP32 e-reader
MIT License
318 stars 43 forks source link

#40 Set PNG transparent color to white #54

Closed martinberlin closed 2 years ago

martinberlin commented 2 years ago

BAB87C5A-B25F-40FB-A5B3-4592FB80E118 PNG lib method: getLineAsRGB565

Has a parameter to set what default background you want. That seems to work great to convert transparent to white that is exactly what we need. I don't think we need to compare pixels since we are not really superimposing images on another things. For me delivers the expected result

cgreening commented 2 years ago

Good point! I was making it much more complicated than it should be.