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
 renaming layers

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
murod Posted - Feb 03 2012 : 19:52:52
how to rename layers and save them by seted name???
4   L A T E S T    R E P L I E S    (Newest First)
murod Posted - Feb 04 2012 : 04:55:17
Thanks you very much... it works perfect...!!!!
fab Posted - Feb 04 2012 : 04:20:12
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');
murod Posted - Feb 04 2012 : 03:48:06
thank you very much... but i want to rename many layers (as in Photoshop) added in ImageEnview and ImageEnMview and save all layers ...
xequte Posted - Feb 04 2012 : 01:30:13
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