You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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)
The text was updated successfully, but these errors were encountered: