T O P I C R E V I E W |
schiva |
Posted - Feb 06 2012 : 21:11:54 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.
|
6 L A T E S T R E P L I E S (Newest First) |
w2m |
Posted - Oct 30 2012 : 14:05:28 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 |
davenovo |
Posted - Oct 30 2012 : 11:33:26 This would be very useful if this was included in the help with the ImageEn component under the .DPI property |
klausdoege |
Posted - Feb 08 2012 : 08:26:48 Hello fabrizio, O.K. that was not clear me so. But it is good to know it. Thanks.
Klaus www.klausdoege.de |
fab |
Posted - Feb 07 2012 : 03:22:52 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 |
klausdoege |
Posted - Feb 07 2012 : 03:13:04 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 |
fab |
Posted - Feb 07 2012 : 01:00:54 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. |