摘要:
import wxfrom PIL import Imagedef ConvertToWxImage(): pilImage = Image.open('1.png') image = wx.EmptyImage(pilImage.size[0], pilImage.size[1]) image.SetData(pilImage.convert("RGB").tostring()) image.SetAlphaData(pilImage.convert("RGBA").tostring()[3::4]) bitmap = wx.Bitma 阅读全文