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
 PSD+Photo How to print priview and print
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Logo

Russia
6 Posts

Posted - Jan 07 2013 :  04:03:28  Show Profile  Reply
Hi.

I downloaded the PSD file and add photo.

Some elements of the PSD beyond the borders of the white frame.

How to preview and print all the objects within the white frame?



Logo

w2m

USA
1990 Posts

Posted - Jan 07 2013 :  06:26:19  Show Profile  Reply
PSD can contain multiple layers. If you want load separated layers write:
ImageEnView1.IO.Params.PSD_LoadLayers:=true;
ImageEnView1.IO.LoadFromFilePSD(filename);


If you want load only the merged image (default) write:
ImageEnView1.IO.Params.PSD_LoadLayers:=false;
ImageEnView1.IO.LoadFromFilePSD(filename);


so before a print or print preview call:
ImageEnView1.IO.Params.PSD_LoadLayers:=false;
ImageEnView1.IO.LoadFromFilePSD(filename);
then to restore call
ImageEnView1.IO.Params.PSD_LoadLayers:=true;
ImageEnView1.IO.LoadFromFilePSD(filename);


There are other ways as well...
call ImageEnView1.LayersMergeAll before printing, then call undo to restore the layers or reload the psd file with layers.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

Logo

Russia
6 Posts

Posted - Jan 07 2013 :  12:39:46  Show Profile  Reply
Thank you!

Logo
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: