TIF files only half height?

  • Thread starter Thread starter NetRacer
  • Start date Start date
N

NetRacer

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
 
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
 
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
 
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?!
 
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
 
Back
Top