This commit is contained in:
Christoph Haas 2026-01-17 22:22:24 +01:00
parent 9ddc04b4f2
commit e70c7ee588
3 changed files with 8 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Before After
Before After

View file

@ -3,8 +3,8 @@ from PIL import ImageFont, Image, ImageDraw
#from time import sleep #from time import sleep
# Das Bild nur speichern. Nicht die LED-Matrix ansteuern. # Das Bild nur speichern. Nicht die LED-Matrix ansteuern.
DEV = False #DEV = False
#DEV = True DEV = True
matrix = None matrix = None

View file

@ -6,8 +6,12 @@ from PIL import Image, ImageDraw, ImageFont
import lib.display import lib.display
def start(stop_event, args): def start(stop_event, args):
image_buffer = Image.open("images/piamedia.png").convert("RGB") image = Image.open("images/piamedia.png").convert("RGBA")
lib.display.matrix.show(image_buffer) if image.mode == "RGBA":
background = Image.new("RGB", image.size, (0, 0, 0))
background.paste(image, mask=image.getchannel("A"))
image = background
lib.display.matrix.show(image)
while not stop_event.is_set(): while not stop_event.is_set():
sleep(0.2) sleep(0.2)