| 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 |
|
|