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
 Output DPI problem

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 - Dec 06 2017 : 10:07:07
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 06 2017 : 23:36:36
Hi Yogi

I cannot reproduce that (checked using Windows Properties).

Please email me TestFile.jpg.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com