#include "EasyBMP.h" using namespace std; int main( int argc, char* argv[] ) { BMP Background; Background.ReadFromFile(argv[1]); BMP Output; int picWidth = Background.TellWidth(); int picHeight = Background.TellHeight(); Output.SetSize( Background.TellWidth() , Background.TellHeight() ); Output.SetBitDepth( 24 ); for (int i = 1; i < picWidth-1; ++i) for (int j = 1; j < picHeight-1; ++j) { Output(j,picWidth-i)->Blue = (int) Background(i,j)->Blue; Output(j,picWidth-i)->Green = (int) Background(i,j)->Green; Output(j,picWidth-i)->Red = (int) Background(i,j)->Red; } Output.WriteToFile(argv[2]); return 0; }