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
 Saving and Restoring a Polygon Selection or Object

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
AndyColmes Posted - May 20 2015 : 13:51:16
I am trying to save a polygon selection or a polygon object and reload it using the saved data. Am I saving the polygon points and redrawing it back? If yes, how would I do that?

In the past, I used to save the object as .IEV files but it has proven not too convenient for the users to save.

Thanks in advance.

Andy
4   L A T E S T    R E P L I E S    (Newest First)
AndyColmes Posted - May 21 2015 : 06:41:00
Hi Nigel, excellent! That's exactly what I needed.

Thanks very much.

Andy
xequte Posted - May 21 2015 : 01:09:09
Hi Andy

If you mean just the selection, then you can use:

ImageEnView1.SaveSelectionToFile();
ImageEnView1.LoadSelectionFromFile();

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
AndyColmes Posted - May 20 2015 : 20:36:28
Unfortunately, I am not using tif files. What I really need is to be able to save polygon selections and be able to restore them. Is there a way to do that by saving and restoring the polygon points to maybe an .ini file?

Thanks Bill.

Andy
w2m Posted - May 20 2015 : 13:55:33
Are you using tif files? If so, you can just save the objects to the tif file with no need for a dialog.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development