SYS86 wrote:
Hence give the source code for this program.
Wow, you're really lost, aren't you ? :P There are three programming languages you may be talking about here. 1/ C. That's what you said 2/ C++ - I guess it's possible 3/ C# - seeing as you asked in the C# forum. If it's 3, then C is a different language, you need to say C#. As I said elsewhere, this is too complex a task for anyone to just write the source code in response to a forum question. However, my series of articles on image processing covers all of this ( in C# ), so just search for "graus image" in the site ( actually, google would probably do it as well ) and you may well find all you need. Unless you meant C. Then, ask in the C++ forum, as C++ is a superset of C, it's as close as we've got. And for C or C++, BitBlt will invert with SRCINVERT, and will flip if you give it negative co-ordinates in the direction you want to flip. Christian Graus - Microsoft MVP - C++