Archived
1
0
Fork 0
This commit is contained in:
多洛狼 2022-06-21 20:25:17 +08:00
parent 7a836006de
commit 282a84689b

View file

@ -111,7 +111,7 @@ async def chemical_code(msg: MessageSession, id=None): # 要求传入消息会
newData = [] newData = []
for item in datas: # 对每个像素点进行处理 for item in datas: # 对每个像素点进行处理
if item[3] == 0: if item[3] == 0:
newData.append((230, 230, 230)) newData.append((255, 255, 255))
else: else:
newData.append(tuple(item[:3])) # 否则保留原图像素点 newData.append(tuple(item[:3])) # 否则保留原图像素点
image = PILImage.new("RGBA", im.size) # 创建新图片 image = PILImage.new("RGBA", im.size) # 创建新图片