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
 How to read the Resolution box in JPEG2000
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yoshii

Japan
14 Posts

Posted - Oct 19 2026 :  02:10:48  Show Profile  Reply
Hello,

I am developing a program to extract resolution information from JPEG2000 files.
The code below fails to retrieve the resolution; it appears unable to read the value from the "Capture Resolution box (resc)." (Note that Photoshop correctly displays the resolution for these files.)

procedure TForm3.Button1Click(Sender: TObject);
var
sDocName, Xdpi,Ydpi: string;

begin
IEGlobalSettings.JPEG2000Engine := ieenDLL;
IEGlobalSettings.DefaultDpiX := 0;
IEGlobalSettings.DefaultDpiY := 0;

sDocName := 'D:\sample_400dpi.jp2';

ImageEnView1.IO.LoadFromFileJP2(sDocName);

Xdpi := IntToStr(ImageEnView1.IO.Params.DpiX);
Ydpi := IntToStr(ImageEnView1.IO.Params.DpiY);
ShowMessage(Xdpi +','+ Ydpi); // 0,0

end;

Any assistance would be greatly appreciated.

yoshii

Japan
14 Posts

Posted - Oct 19 2026 :  02:38:16  Show Profile  Reply
Hello,

I have attached a sample image; please take a look.

attach/yoshii/2026101923117_sample_400dpi.zip
980.1 KB
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: