473,378 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

TIF files only half height?

Hi,

I'm loading graphics into a PictureBox using then Image.FromFile method. If
the Image is a TIF file it get's only half the height. The whole Image is
displayed (not cut off somewhere) but it looks squeezed. The TIFs are
documents received by fax and encoded by "Group 3 Fax Encoding" (as
InfanView says). Also the vertical resolution is half as the one IrfanView
says.

What goes wrong here and what can I do? It is important to show these
Documents correctly.

Thanx for any help,
netracer
Nov 21 '05 #1
4 1622
Hi,

If you have the picturebox's sizemode set to stretchimage it will
make the image fill the picturebox. That means that the images width will
be the same as the picturebox and height will be the same as the picturebox.

Ken
-------------
"NetRacer" <ne******@netspeedway.net> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm loading graphics into a PictureBox using then Image.FromFile method.
If the Image is a TIF file it get's only half the height. The whole Image
is displayed (not cut off somewhere) but it looks squeezed. The TIFs are
documents received by fax and encoded by "Group 3 Fax Encoding" (as
InfanView says). Also the vertical resolution is half as the one IrfanView
says.

What goes wrong here and what can I do? It is important to show these
Documents correctly.

Thanx for any help,
netracer

Nov 21 '05 #2
> I'm loading graphics into a PictureBox using then Image.FromFile
method. If the Image is a TIF file it get's only half the height. The
whole Image is displayed (not cut off somewhere) but it looks
squeezed. The TIFs are documents received by fax and encoded by
"Group 3 Fax Encoding" (as InfanView says). Also the vertical
resolution is half as the one IrfanView says.

What goes wrong here and what can I do? It is important to show these
Documents correctly.


Compare the horizontal and vertical resolutions (as you have found, they are
not equal for faxes) and if they are different then stretch the image.

Andrew
Nov 21 '05 #3
yeah, i'm streching the image manually right now.
but this is not the best solution. the horizontal and vertical resolutions
are different in the originals, too. the originals have 204dpi X 196dpi and
the image object only gets 204dpi X 98dpi. also many of the files have more
than one page and with manual streching, i think this information gets
lost?!
"Andrew Morton" <ak*@in-press.co.uk.invalid> schrieb im Newsbeitrag
news:Ox**************@TK2MSFTNGP15.phx.gbl...
I'm loading graphics into a PictureBox using then Image.FromFile
method. If the Image is a TIF file it get's only half the height. The
whole Image is displayed (not cut off somewhere) but it looks
squeezed. The TIFs are documents received by fax and encoded by
"Group 3 Fax Encoding" (as InfanView says). Also the vertical
resolution is half as the one IrfanView says.

What goes wrong here and what can I do? It is important to show these
Documents correctly.


Compare the horizontal and vertical resolutions (as you have found, they
are not equal for faxes) and if they are different then stretch the image.

Andrew

Nov 21 '05 #4
hi,

i know this. but in this picturebox not only faxes but also photos, etc.
should be loaded. if i make my lettersized picturebox to strechimage also
the photos will be streched.
why .NET doesn't load these tifs correctly? if it is a 1732x2292 image, it
loads only 1732x1148 with half the vertical resolution.

thanx anywhere, i'll further try...
netracer

"Ken Tucker [MVP]" <vb***@bellsouth.net> schrieb im Newsbeitrag
news:e7**************@tk2msftngp13.phx.gbl...
Hi,

If you have the picturebox's sizemode set to stretchimage it will
make the image fill the picturebox. That means that the images width will
be the same as the picturebox and height will be the same as the
picturebox.

Ken
-------------
"NetRacer" <ne******@netspeedway.net> wrote in message
news:ep**************@TK2MSFTNGP10.phx.gbl...
Hi,

I'm loading graphics into a PictureBox using then Image.FromFile method.
If the Image is a TIF file it get's only half the height. The whole Image
is displayed (not cut off somewhere) but it looks squeezed. The TIFs are
documents received by fax and encoded by "Group 3 Fax Encoding" (as
InfanView says). Also the vertical resolution is half as the one
IrfanView says.

What goes wrong here and what can I do? It is important to show these
Documents correctly.

Thanx for any help,
netracer


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: André Hänsel | last post by:
Hi! I compared the printed results of two of my pages. One is a very old page, "styled" almost without any CSS. The other one is a modern page, styled completely in CSS and styled for printing,...
0
by: Martin | last post by:
I understand that as of IE5.5 iframes respect the z-index style property. However I have noticed some odd behaviour when the iframe's src is set to an MHT web archive instead of an HTML file. ...
1
by: Jamal | last post by:
I am working on binary files of struct ACTIONS I have a recursive qsort/mergesort hybrid that 1) i'm not a 100% sure works correctly 2) would like to convert to iteration Any comments or...
6
by: Jamal | last post by:
I am working on binary files of struct ACTIONS I have a recursive qsort/mergesort hybrid that 1) i'm not a 100% sure works correctly 2) would like to convert to iteration Any comments or...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
4
by: trint | last post by:
I am developing a new website for our company with c# dotNet. There is no problem displaying this website with ie6. Last week I downloaded ie7 because a friend of mine said he could only see half...
10
by: Tammy | last post by:
Hello all, I am wondering what is the best way to declare a struct to be used in other c and c++ files. Such as for a C API that will be used by others. 1. Declaring the typedef and the...
9
by: Nathan Sokalski | last post by:
I have a Console Application, and when I do a "Start Without Debugging" to test it, everything works, but it will not allow me to make the window wider than half my screen. Even if I maximize it,...
2
by: kelvinwebdesigner | last post by:
Hi everybody. Im currently developing an application where users can upload files and later get acess to the url. Im now having this trouble with header Cannot modify header information – headers...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.