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
 How to read the Resolution box in JPEG2000

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
yoshii Posted - Oct 19 2026 : 02:10:48
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.
1   L A T E S T    R E P L I E S    (Newest First)
yoshii Posted - Oct 19 2026 : 02:38:16
Hello,

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

attach/yoshii/2026101923117_sample_400dpi.zip
980.1 KB