ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Shapes or Objects on images with DB saving
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Waheed

Kuwait
36 Posts

Posted - Aug 24 2019 :  03:45:36  Show Profile  Reply
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

xequte

38616 Posts

Posted - Aug 24 2019 :  16:05:34  Show Profile  Reply
Hi Waheed,

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:

https://www.imageen.com/help/TIOParams.IEN_StoreBackground.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: