C process .bmp file

This is a discussion on C process .bmp file within the C Programming forums, part of the General Programming Boards category; Hi, I am supposed to read in a .bmp file and then alter it based on command line arguements.
Examples:
...

C process .bmp file

Hi, I am supposed to read in a .bmp file and then alter it based on command line arguements.

Examples:
-fromrow x, where x specifies the bottommost row to process
-torow x, where x specifies the topmost row to process
-fromcol x, where x specifies the leftmost column to process
-tocol x, where x specifies the rightmost column to process
-op x, where x is one of the following
-- 1= threshold the image(any pixel value in the specifies range over 127 is
changed to 255, and pixel values 127 or less is changed to 0)
-- 2= negative (any pixel value p in the specified range is changed to 255-p)