Skip to content

Commit 8160e80

Browse files
authored
Update easydisplay.py
更新了关于文件格式转换的注释
1 parent 87ac4d6 commit 8160e80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/easydisplay.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def pbm(self, file: str, x, y, show: bool = None, clear: bool = None, color: int
123123
显示 pbm 图片
124124
125125
# 您可以通过使用 python3 的 pillow 库将图片转换为 pbm 格式,比如:
126+
# convert_type = "1" # 1 为黑白图像,RGBA 为24位彩色图像
126127
# from PIL import Image
127128
# with Image.open("文件名.png", "r") as img:
128129
# img2 = img.convert(convert_type)
@@ -205,7 +206,8 @@ def bmp(self, file: str, x, y, show: bool = None, clear: bool = None, key: int =
205206
"""
206207
显示 bmp 图片
207208
208-
# 您可以通过使用 windows 的 画图 将图片转换为 bmp 格式
209+
# 您可以通过使用 windows 的 画图 将图片转换为 `24-bit` 的 `bmp` 格式
210+
# 也可以使用 `Image2Lcd` 这款软件将图片转换为 `24-bit` 的 `bmp` 格式(水平扫描,包含图像头数据,灰度二十四位)
209211
210212
Args:
211213
file: pbm 文件所在位置

0 commit comments

Comments
 (0)