1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 02:48:23 +08:00

Chore: [ALAS] Default image name in image_save

This commit is contained in:
LmeSzinc
2024-05-09 18:46:53 +08:00
parent 7717ff9746
commit 6bd10d1a9d

View File

@@ -190,7 +190,9 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc):
image = self.image
Image.fromarray(image).show()
def image_save(self, file):
def image_save(self, file=None):
if file is None:
file = f'{int(time.time() * 1000)}.png'
save_image(self.image, file)
def check_screen_size(self):