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
 Merge two PSD files in one instance ImageEN

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
yogiyang Posted - May 31 2013 : 04:38:23
I want to load two different PSD files with many layers into one instance of ImageEnView.

If I load a PDF file that has layers and try to load another PSD files that has layers then the layers of previously loaded file gets removed and replaced by the layers of the last loaded PSD file.

How can I load two different PSD files with layers into one instance of ImageENView?

TIA

Yogi Yang


Yogi Yang
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 31 2013 : 07:59:50
You can replace the layers automatically by setting ImageEnView1.IO.Params.PSD_ReplaceLayers to true before loading the file. If PSD_LoadLayers is True then the layers in the PSD file replace any layers already in ImageEnView. If PSD_ReplaceLayers is False then all layers in the PSD file will be added to the layers in ImageEnView. When PSD_ReplaceLayers is True, the content of the PSD file replaces the content of the ImageEnView.

So Normal loading is:
ImageEnView1.IO.Params.PSD_LoadLayers := True;
ImageEnView1.IO.Params.PSD_ReplaceLayers := True;
ImageEnView1.IO.LoadFromFilePSD(AFilename);
To Add all layers:
ImageEnView1.IO.Params.PSD_LoadLayers := True;
ImageEnView1.IO.Params.PSD_ReplaceLayers := False;
ImageEnView1.IO.LoadFromFilePSD(AFilename);

So to test:
1. Load first PSD file with:
if iFileType = ioPSD then
begin
  ImageEnView1.IO.Params.PSD_LoadLayers := True;
  ImageEnView1.IO.Params.PSD_ReplaceLayers := True;
  ImageEnView1.IO.LoadFromFile(iFilePath);
end;

2. Load the second PSD file with
if iFileType = ioPSD then
begin
  ImageEnView1.IO.Params.PSD_LoadLayers := True;
  ImageEnView1.IO.Params.PSD_ReplaceLayers := False;
  ImageEnView1.IO.LoadFromFilePSD(AFilename);
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html