Search code examples
cfilebitmapstructurebitmapimage

bitmap image file manipulation using bitmap file structure in c


I want to implement a simple command line based image editor. The program will provide a text based menu, which provides several functions for user to manipulate a windows bitmap (.bmp) image file. The menu will include load image, rotate image, mirror image, save image and quit options. The load image option will be used to open and read pixel values from a given bitmap file. This option will also print out the basic properties, such as dimensions and total size, of the given file. The rotate and mirror options will manipulate previously read pixel values. An image must be loaded before applying these options. The save option will save the pixel values in the memory to a bitmap file with a given filename.

Which approach do you recommend for me about this project and about bitmap file structure?

It would be very appreciated if you give me advice even about one particular topic for example load the file.


Solution

  • libbmp will make your program all but trivial to implement.