Reading and editing 24-bit BMP-file
The application does:
- Take three arguments as input: the name of an input file, the name of an output file and a rotation value (a number from 0 to 3).
- Read the input file.
- Print the information about the file to the console: total size in bytes, size in pixels horizontally and vertically, average image brightness.
- Sort the pixels in ascending order of brightness for each row.
- Rotate the image by the specified angle.
- Save the new image to the output file.