This C program processes 24-bit BMP images by performing two main operations:
- Color Inversion: Swaps the RGB channels to create a color-shifted effect.
- Grayscale Conversion: Converts the image to grayscale by averaging the RGB values.
- Binary File Handling: Reads and writes BMP files efficiently.
- Direct Pixel Manipulation: Modifies image data at the byte level.
- Dynamic Memory Allocation: Handles image data with safe memory management.
- Header Parsing: Uses packed structs to accurately read BMP headers.
invertecor.bmp→ Image with inverted RGB colors.tonsdecinza.bmp→ Image converted to grayscale.