Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Image/Scene to file #43

Open
acbart opened this issue Apr 8, 2014 · 3 comments
Open

Save Image/Scene to file #43

acbart opened this issue Apr 8, 2014 · 3 comments

Comments

@acbart
Copy link
Member

acbart commented Apr 8, 2014

I (someday) plan to rewrite Broadway to work with the new Spyral API. That will require a way to export Images and the Scene to a file, using pygame.image.save[1]. Obviously, this is extremely low priority.

[1] http://www.pygame.org/docs/ref/image.html#pygame.image.save

@danbarbarito
Copy link

Any idea on how to go about doing this?

@rdeaton
Copy link
Member

rdeaton commented Apr 13, 2014

For images, we can probably add a method on them to let you save them to a file.

For saving out the scene, we can probably provide a hook in the form of an event that stuffs the scene into a dummy Image for you to call ->save() on? I'm not sure there's any other good place for us to provide acccess to the rendered scene.

@acbart
Copy link
Member Author

acbart commented Apr 13, 2014

For saving the scene, is it not as simple as passing pygame.display.get_surface() into pygame.image.save() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants