Reading a bmp file and inverting it in C

Posted by user1763396 on Stack Overflow See other posts from Stack Overflow or by user1763396
Published on 2012-10-21T16:54:55Z Indexed on 2012/10/21 17:00 UTC
Read the original article Hit count: 140

Filed under:
|

I have an assignment that deals with reading a bmp file into memory, inverts the pixels, and then saves the inverted image to a new file. From this description it seems fairly easy, however I don't think my professor did a great job in explaining the necessary steps to go about doing so. He taught us about fread and fwrite but there is so much more. Can anyone explain the process in going about this problem (I'm no looking for a direct answer just an explanation).

Here is the link to the problem's description: https://engineering.purdue.edu/OOSD/F2012/Exercises/ex5.html

Thanks in advance for any sort of help. NOTE: I actually have looked into this problem but since I don't have a good standing on this info it's not quite "clicking".

© Stack Overflow or respective owner

Related posts about c

    Related posts about binaryfiles