Page 1 of 1

How to cut a part of BITMAP dragging the mouse & save it

Posted: Sun Nov 16, 2008 3:48 am
by RAMESHBABU
Hi Friends

Can anybody guide me how to accomplish this feature.

I should allow my client to cut a part of bitmap as per his choice
using mouse and save it to a BMP or JPG ?

Thanks

- Ramesh Babu P

Posted: Sun Nov 16, 2008 9:50 am
by Antonio Linares
Ramesh,

Once you have the portion coordinates, you have to use BitBlt() to copy it to another bitmap.

Look for BitBlt() in these forums. Also CreateCompatibleBitmap()

Posted: Sun Nov 16, 2008 2:39 pm
by RAMESHBABU
Hello Mr.Antonio

Thank you very much. I have done it. And it is working now.

Regards.

- Ramesh Babu P