1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add transparency support to all image types (#4600)

This commit is contained in:
guillempages
2023-05-21 22:03:21 +02:00
committed by GitHub
parent c61a3bf431
commit 8a518f0def
8 changed files with 359 additions and 110 deletions

BIN
tests/pnglogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

View File

@@ -659,6 +659,27 @@ interval:
display:
image:
- id: binary_image
file: pnglogo.png
type: BINARY
dither: FloydSteinberg
- id: transparent_transparent_image
file: pnglogo.png
type: TRANSPARENT_BINARY
- id: rgba_image
file: pnglogo.png
type: RGBA
resize: 50x50
- id: rgb24_image
file: pnglogo.png
type: RGB24
use_transparency: yes
- id: rgb565_image
file: pnglogo.png
type: RGB565
use_transparency: no
cap1188:
id: cap1188_component
address: 0x29