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
 Output DPI problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
730 Posts

Posted - Dec 06 2017 :  10:07:07  Show Profile  Reply
Hello,

I am opening a .psd file which is in 300 DPI. Now I am loading two files in separate layers in this file. The two files are also in 300 DPI.

I am using following code to save the file but I think I am missing something because of which the DPI of the saved file get set to 72. I checked this with IrfanView as well as Photoshop.


ieMain.LayersMergeFilter := rfLanczos3;

      ieMain.IO.Params.JPEG_Quality := 100;
      if optCMYK.Checked then
      begin
        ieMain.IO.Params.JPEG_ColorSpace := ioJPEG_CMYK;
        ieMain.IEBitmap.ColorProfile.Assign_CMYKProfile();
      end
      else
      begin
        ieMain.IO.Params.JPEG_ColorSpace := ioJPEG_RGB;
        ieMain.IEBitmap.ColorProfile.Assign_AdobeRGB1998();
      end;  //if optCMYK.Checked then

      ieMain.IO.Params.DpiX := 300;
      ieMain.IO.Params.DpiY := 300;
      ieMain.IO.Params.Dpi := 300;

      ieMain.LayersSaveMergedTo('TestFile.jpg');


How to solve this problem?

TIA


Yogi Yang

xequte

39143 Posts

Posted - Dec 06 2017 :  23:36:36  Show Profile  Reply
Hi Yogi

I cannot reproduce that (checked using Windows Properties).

Please email me TestFile.jpg.



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: