Hi, What do you recommend for this scenario? 1. I have images of a book stored in a folder that are named the same as the page number. 2. I want the user to mark areas on the page (either arrow shape, rectangle shape or annotations). 3. The program should save these shapes/annotations in a table. 4. The shapes will be reloaded the next time the same page viewed.
Is there a sample code to do that? Which component should I use (View/Vect)? How can collect all shapes and annotations and save them in a field?
----------------- 3 Monitors Windows 10 Delphi 2007 ImageEn v.8.3
Firstly, you should use the TIELayers of TImageEnView, as it is much better than the older TImageEnVect functionality.
The three main ways to store image annotations (separately from the image): - In a database - As a file (e.g. with the same name as the page file) - Embedded in the meta data of the page image (need to be JPEG or TIFF)
As the page images themselves are not stored in a database, I don't see a good reason to store the image annotations there (though you may have other reasons I don't know about). So my preference would be to save them as an file with the same name as the image, e.g.
Page_001.jpg Page_001.ien
Saving and loading annotations from a file is simple, though as you are storing the background image separately, see the examples at: