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

Move out image reading code from main #5

Open
iogrt opened this issue Dec 6, 2020 · 0 comments
Open

Move out image reading code from main #5

iogrt opened this issue Dec 6, 2020 · 0 comments

Comments

@iogrt
Copy link

iogrt commented Dec 6, 2020

Currently there is a lot of logic inside of the main function. We can move out the code that handles the opening of the file.

My suggestion is to create a structure containing all of the information we get from the image file ( imageData ) and then having a function with this signature:

openImage(char [] filename, ImageData * imgData)

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

1 participant