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

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

Postby RAMESHBABU » Sun Nov 16, 2008 3:48 am

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
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Antonio Linares » Sun Nov 16, 2008 9:50 am

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

Postby RAMESHBABU » Sun Nov 16, 2008 2:39 pm

Hello Mr.Antonio

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

Regards.

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 2 guests