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

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

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

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Hello Mr.Antonio

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

Regards.

- Ramesh Babu P
Post Reply