Draw an area over a Bitmap in C++ Builder?
Posted on 1998-03-02
i'm trying to write a program that one of its task is let the user to select an area over a bitmap.
The area must be select with a rectangle over this image. The user must press the mouse button,
to select the origin point, and then must move the mouse to the final point, and release the button,
to finish the selection. A rectangle must be painted while the user is moving the mouse from the origin
point to the final point, showing the area selected in each moment.
I've tried to do this with a canvas in a TImage object for the bitmap but i can't clean every rectangle
that i paint while the mouse is moving to the final point.
How can i write this program?
what C++ Builder objects must i use?