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

Saving displayed image to file? #78

Closed
cbecker opened this issue Aug 14, 2015 · 2 comments
Closed

Saving displayed image to file? #78

cbecker opened this issue Aug 14, 2015 · 2 comments

Comments

@cbecker
Copy link

cbecker commented Aug 14, 2015

Hi Tim, I am wondering if there is an easy way to save the contents that are currently being displayed by ImageView to a png or any other image format. I love how easy it is to draw overlays/text/boxes to an ImageView canvas,

I tried the following but it won't save the annotations, as I think I am only capturing the image part:

using Cairo
i1,i2 = ImageView.view( whatever_img )
Cairo.write_to_png(i1.surface, "/tmp/test.png")

thanks.

@rsrock
Copy link
Collaborator

rsrock commented Aug 14, 2015

See if this helps: #28

@cbecker
Copy link
Author

cbecker commented Aug 14, 2015

Thanks! I should've checked before, works perfectly.

@cbecker cbecker closed this as completed Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants