如何使用wxpython合并(连接)两个wx.bitmap?
我有一张 wx.emptybitmap (1) 和一张 wx.bitmap (2)。我想合并(加入)它们..
我想创建一个wx.bitmap,它由顶部的wx.emptybitmap(1)和底部的wx.bitmap(2)组成。
我怎样才能做到这一点?
提前致谢! :D
I have one wx.emptybitmap (1) and one wx.bitmap (2). I want to merge(join) them..
I want to create a single wx.bitmap that consists on the wx.emptybitmap (1) on the top and wx.bitmap (2) on the bottom.
How can I do that?
Thanks in advance! :D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过大量的网络搜索后,它是:)
代码是这样的!
After a lot of web searching here it is :)
The code is something like that!
你总是可以使用 PIL,它有一个函数可以做到这一点。将图像保存在内存中并将其转换为wx.Bitmap。
You could always use PIL, it has a function to do this. Save the image in memory and convert it into an wx.Bitmap.