【发布时间】:2019-04-18 08:38:30
【问题描述】:
我想在我的 pyglet 游戏运行时截屏并将其更改为 numpy 数组,我该怎么做?
使用pyglet.image.get_buffer_manager().get_color_buffer().get_image_data()
我可以截屏,但我不知道如何将其更改为 numpy 数组。
顺便说一句,使用函数get_data() 非常耗时,我试过了,但它会减慢我的游戏速度。
【问题讨论】:
标签: python-3.x numpy pyglet