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

Feature request: DrawTarget::write_png_to_memory #95

Closed
Maldela opened this issue Dec 6, 2019 · 3 comments
Closed

Feature request: DrawTarget::write_png_to_memory #95

Maldela opened this issue Dec 6, 2019 · 3 comments

Comments

@Maldela
Copy link

Maldela commented Dec 6, 2019

Hi!
I think a function for DrawTarget to write a png encoded image to a Vec would be useful.
Right now it only writes a png file to a given Path which is not helpful, if you want to use the data in your program.

@jrmuizel
Copy link
Owner

jrmuizel commented Dec 6, 2019

This seems reasonable. I might make it so it just takes a w: Write.

@Maldela
Copy link
Author

Maldela commented Dec 6, 2019

Perfect

@Maldela
Copy link
Author

Maldela commented Dec 12, 2019

Nevermind. I was just too stupid to use the raw data.

@Maldela Maldela closed this as completed Dec 12, 2019
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