This repository has been archived on 2023-09-06. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
py-gtk-notes
Archived
1
0
Fork 0
master
yutent 2023-07-28 17:54:08 +08:00
parent 8ab9ea2dd9
commit 89ce9d1c3e
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def pixbuf_to_dict(pixbuf, filename = ''):
# 没有apha通道时, get_pixels() 得到像素矩阵会出现极个别像素出现alpha通道
# 所以, 这里强制设置alpha通道为false, 补全像素矩阵的数据
if has_alpha is False:
if not has_alpha:
pixbuf = pixbuf.add_alpha(False, 0, 0, 0)
if pixbuf: