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 apply resolution to display image ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

schiva

4 Posts

Posted - Feb 06 2012 :  21:11:54  Show Profile  Reply
I have 2 types Tif image.
One is 1728 * 1169 (DPIX:204, DPIY:98),
The other is 1728 * 2338 ( DPIX:204 , DPIY: 196).

When i see 1728 * 1169 tif file with XnView( http://www.xnview.com ),
It looks like A4 size, i mean it is good to see for people.

But i try 1728 * 1169 tif file with TImageEnView,
It did not looks like A4 Size.

So, i must use TImageEnView.Proc.Resample(1728, 2338), after load tif file into TImageEnView. ( it was good to see for other people ).

My Question is ....
Is there the other way without resample(resize) ??

ps). sorry for my poor english.

fab

1310 Posts

Posted - Feb 07 2012 :  01:00:54  Show Profile  Reply
There are several different viewing options available in TImageEnView. For example you could fit the image into the component size:

ImageEnView.Fit();

or automatically (whenever an image is loaded):

ImageEnView.AutoFit := true;

Another option is to set ImageEnView.AutoShrink:=true or ImageEnView.AutoStretch:=true.

Other ways: ImageEnView.FitToWidth() and ImageEnView.FitToHeight().

All these methods acts on the Zoom property.

To enhance display quality set a resampling filter, for example:

ImageEnView.ZoomFilter := rfFastLinear;

Finally, it seems not clear for me to speak about A4 size (and of DPI) when an image is displayed on a monitor. Please clear this question.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Feb 07 2012 :  03:13:04  Show Profile  Reply
Hello,
I have opened a picture with:
ImageEnView1.IO.LoadfromToFile(filename);
->
ImageEnView1.IO.Params.DpiX =300 and
ImageEnView1.IO.Params.DpiY =300.

Afterwards, I have altered the DPIs in:
ImageEnView1.IO.Params.DpiX :=300;
ImageEnView1.IO.Params.DpiY :=150;
ImageEnView1.IO.SaveToFile(newfilename);
ImageEnView1.IO.LoadfromToFile(newfilename);
ImageEnView1.IO.Params.DpiX =300 and
ImageEnView1.IO.Params.DpiY =150.
But after renewed opens, I could see no alteration in the view.
Why not?
Maybe, that is the problem, which schiva means.

Klaus
www.klausdoege.de
Go to Top of Page

fab

1310 Posts

Posted - Feb 07 2012 :  03:22:52  Show Profile  Reply
Hello,
DPI are metatags (informative tags), they do not specify the image width and height in pixels.
If you alter DPI in this way the size of the image doesn't change. Just the DPI tag changes.
Also, ImageEn uses DPI info only when the image is actually printed. The viewer (TImageEnView) displays the image as is.

This topic could be also useful:
http://www.imageen.com/ieforum/topic.asp?TOPIC_ID=269
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Feb 08 2012 :  08:26:48  Show Profile  Reply
Hello fabrizio,
O.K. that was not clear me so.
But it is good to know it.
Thanks.

Klaus
www.klausdoege.de
Go to Top of Page

davenovo

USA
26 Posts

Posted - Oct 30 2012 :  11:33:26  Show Profile  Reply
This would be very useful if this was included in the help with the ImageEn component under the .DPI property
Go to Top of Page

w2m

USA
1990 Posts

Posted - Oct 30 2012 :  14:05:28  Show Profile  Reply
I expanded the discussion of DPI and TIOParams in my EBook to glean this information from several of Fabrizio's posts.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: