fix:一些显示bug
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled

This commit is contained in:
AxTps committed 2026-09-13 18:25:36 +08:00
1 parent f81a89adc9
commit 8e9b0894ba
6 files changed
+136 -1

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from PIL import Image
im = Image.open(r"C:\Users\28579\Downloads\resources\resources\netherstar.png")
print("模式:", im.mode)
print("尺寸:", im.size)
print("有 alpha:", im.mode in ("RGBA", "LA"))
if im.mode in ("RGBA", "LA"):
a = im.getchannel("A")
print("alpha bbox:", a.getbbox())
print("alpha 范围:", a.getextrema())
# 采样角落像素,看是不是白/透明
w, h = im.size
print("左上角:", im.getpixel((0, 0)))
print("中心:", im.getpixel((w // 2, h // 2)))