我想用Everyplay生成EAGLView的屏幕截图,但是无法做到。在Everyplay的github页面中,更改日志说我们可以按需要多次调用[[[Everyplay sharedInstance] capture] takeThumbnail];,但我找不到任何方法从它获得图像。
另外,EveryplayCapture类提供了一个属性"thumbnailTextureId“(我猜它引用了thumbnailTextureId纹理),但始终是0或零。
我不想使用EAGLView的-snapshot方法,因为结果图像不够好(包含粗糙的白色边框围绕着精灵)来使用。
有没有办法从每个剧本中获得截图图像?
发布于 2013-09-24 11:49:24
你们关系很好。
在类中(然后传递给Everyplay init方法)实现了这个回调方法:
- (void)everyplayThumbnailReadyAtFilePath:(NSString *)thumbnailFilePath;现在如果你打电话
[[[Everyplay sharedInstance] capture] takeThumbnail];Everyplay将调用上面的方法来通知您它已经准备好了--从那里您可以将它作为文件读取。
https://stackoverflow.com/questions/18980621
复制相似问题