Changed reading and writing type

The program now uses Opacity in ARGB format instead of black or white pixels. The text is now practically invisible.
This commit is contained in:
Zaponium 2023-12-10 19:33:22 +01:00
commit 59d1ff6aca
8 changed files with 239 additions and 15381 deletions

7
Tests.py Normal file
View file

@ -0,0 +1,7 @@
from PIL import Image
img = Image.open("Main/input/car.jpg").convert("RGBA")
print (f"{img.getpixel((10,10))}")
print (f"{img.getpixel((10,10))[1]}")
img.putpixel((10,10), (255, 255, 255, 200))
print (f"{img.getpixel((10,10))}")