FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades How to cut a part of BITMAP dragging the mouse & save it
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to cut a part of BITMAP dragging the mouse & save it
Posted: Sun Nov 16, 2008 03: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to cut a part of BITMAP dragging the mouse & save it
Posted: Sun Nov 16, 2008 09: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
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
How to cut a part of BITMAP dragging the mouse & save it
Posted: Sun Nov 16, 2008 02:39 PM

Hello Mr.Antonio

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

Regards.

  • Ramesh Babu P

Continue the discussion