TIF files only half height?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NetRacer

    #1

    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


  • Ken Tucker [MVP]

    #2
    Re: TIF files only half height?

    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" <netracer@netsp eedway.net> wrote in message
    news:epJ6uKs2FH A.3704@TK2MSFTN GP10.phx.gbl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    • Andrew Morton

      #3
      Re: TIF files only half height?

      > I'm loading graphics into a PictureBox using then Image.FromFile[color=blue]
      > 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.[/color]

      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


      Comment

      • NetRacer

        #4
        Re: TIF files only half height?

        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" <akm@in-press.co.uk.inv alid> schrieb im Newsbeitrag
        news:Ox3dG1u2FH A.3588@TK2MSFTN GP15.phx.gbl...[color=blue][color=green]
        >> 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.[/color]
        >
        > 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
        >[/color]


        Comment

        • NetRacer

          #5
          Re: TIF files only half height?

          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]" <vb2ae@bellsout h.net> schrieb im Newsbeitrag
          news:e74xaeu2FH A.3244@tk2msftn gp13.phx.gbl...[color=blue]
          > 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" <netracer@netsp eedway.net> wrote in message
          > news:epJ6uKs2FH A.3704@TK2MSFTN GP10.phx.gbl...[color=green]
          >> 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
          >>
          >>[/color]
          >
          >[/color]


          Comment

          Working...