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

Allow parsing into different data types #64

Open
PMunch opened this issue Sep 10, 2021 · 1 comment
Open

Allow parsing into different data types #64

PMunch opened this issue Sep 10, 2021 · 1 comment

Comments

@PMunch
Copy link

PMunch commented Sep 10, 2021

Essentially it would be nice if nimPNG could parse a 16-bit greyscale into a seq[uint16] for example, and similarly write this data. This shouldn't be too hard to implement, although might add a bit of complexity when handling byte ordering, but it would make it much easier to use nimPNG.

@jangko
Copy link
Owner

jangko commented May 10, 2023

This should be easy to implement. Only need to add seq[uint16] to openArray[byte] conversion for the input part. And a reverse process at the output end.

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