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:
parent
c17fb22028
commit
59d1ff6aca
8 changed files with 239 additions and 15381 deletions
7
Tests.py
Normal file
7
Tests.py
Normal 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))}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue