@SaraT: of course it is possible.
Some time ago I created a small test application in which I programmed a tool for selecting a fragment of the image. The image is displayed in a
TPaintBox component. It looks similar to the one from
Paint — it can be moved and extended with nine anchors (or six/four, if they all don't fit). Each anchor and area itself has cursor change support. In addition, the anchor size can be changed with the
+ and
– (non-numeric) keys.
I add sources for this program to attachments. You can go ahead and use this code — all you have to do is add the rendering of the text in the frame (
Canvas.TextRect method can be used) and that's it.
If I were to program such a selection tool today, I would probably do it differently. But the attached one is Ok.