change
This commit is contained in:
parent
0b3027e848
commit
b124ee496c
@ -33,7 +33,7 @@ try:
|
|||||||
logging.info("4.read bmp file on window")
|
logging.info("4.read bmp file on window")
|
||||||
blackimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
|
blackimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
|
||||||
redimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
|
redimage1 = Image.new('1', (epd.height, epd.width), 255) # 298*126
|
||||||
newimage = Image.open(os.path.join(picdir, 'elektrizitat.png'))
|
newimage = Image.open(os.path.join(picdir, 'elektrizitat.bmp'))
|
||||||
blackimage1.paste(newimage, (10,10))
|
blackimage1.paste(newimage, (10,10))
|
||||||
epd.display(epd.getbuffer(blackimage1), epd.getbuffer(redimage1))
|
epd.display(epd.getbuffer(blackimage1), epd.getbuffer(redimage1))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user