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
 save Grouped Object
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

peberhardt

Germany
21 Posts

Posted - Apr 03 2017 :  13:07:43  Show Profile  Reply
Hello,

i have 2 lines and a box grouped, it is possible to save the group
to a external file?

I need the group more often and want to paste this over a button again

i found this


// save
ImageEnView1.SaveSelectionToFile('d:\test');


// restore
ImageEnView1.LoadSelectionFromFile('d:\test');


i found sel1.Position := 0;

but what is sel1?

the file save is ok, but i can not restore......


best regards
soory for my bad english

peter

xequte

38613 Posts

Posted - Apr 03 2017 :  19:52:28  Show Profile  Reply
Hi Peter

Sorry, when you say 2 lines and a box, what kind of objects are they? TImageEnVect objects? or TImageEnView image layers?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

peberhardt

Germany
21 Posts

Posted - Apr 04 2017 :  01:40:21  Show Profile  Reply
Hello,

soory, it is TImageEnVect objects

best regards
peter
Go to Top of Page

xequte

38613 Posts

Posted - Apr 04 2017 :  16:52:16  Show Profile  Reply
Hi Peter

Probably the easiest method would be to create a temporary TImageEnVect in memory and copy the desired objects to it:

https://www.imageen.com/help/TImageEnVect.CopyObjectTo.html

Then save the temporary ievect to IEV.

https://www.imageen.com/help/TImageEnVect.SaveToFileIEV.html


When loading you can just use the append parameter of LoadFromFileIEV:

https://www.imageen.com/help/TImageEnVect.LoadFromFileIEV.html


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