初步尝试UI化

This commit is contained in:
2025-12-03 22:00:44 +08:00
parent c72cdd6a6b
commit 274ca0fa9a
4 changed files with 86 additions and 2 deletions

View File

@ -562,8 +562,8 @@ class ImageFilterImplement:
def apply_shadow(image: Image.Image,
x_offset: int = 10,
y_offset: int = 10,
blur = 10,
opacity = 0.5,
blur: float = 10,
opacity: float = 0.5,
shadow_color = "black") -> Image.Image:
if image.mode != 'RGBA':
image = image.convert('RGBA')