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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Shapes or Objects on images with DB saving

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Waheed Posted - Aug 24 2019 : 03:45:36
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 24 2019 : 16:05:34
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