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
 renaming layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

murod

Argentina
6 Posts

Posted - Feb 03 2012 :  19:52:52  Show Profile  Reply
how to rename layers and save them by seted name???

xequte

39056 Posts

Posted - Feb 04 2012 :  01:30:13  Show Profile  Reply
Hi

You can rename objects as follows:

// Rename the object I just added
ImageEnVect1.ObjName[-2] := 'My Object';

This name is saved with the layers.


You can use the name to find the index of an object too:

iIndex := ImageEnVect1.GetObjFromName('My Object');

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

murod

Argentina
6 Posts

Posted - Feb 04 2012 :  03:48:06  Show Profile  Reply
thank you very much... but i want to rename many layers (as in Photoshop) added in ImageEnview and ImageEnMview and save all layers ...
Go to Top of Page

fab

1310 Posts

Posted - Feb 04 2012 :  04:20:12  Show Profile  Reply
ImageEn stores layer name in ImageEnView.Layers[].Name, so you can change the name with:

// change name of layer 0
ImageEnView.Layers[0].Name := 'new name';

Finally you can save to PSD:

ImageEnView.IO.SaveToFile('output.psd');
Go to Top of Page

murod

Argentina
6 Posts

Posted - Feb 04 2012 :  04:55:17  Show Profile  Reply
Thanks you very much... it works perfect...!!!!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: