tiff image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashtari66
    New Member
    • Nov 2011
    • 2

    tiff image

    i have some tiff file . i want to show them with piture box but some of them is ok but somee of them has this error : out of memory . and they are similar in properties but the images that have error have 8 bit depth . what can i do?
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    How big are the images? Are they large enough that an out of memory error is actually something that's possible? What mechanism are you using to load them into the picture box?

    Please supply more information and context on your problem. Code samples included. Heads up, a moderator may delete your question as it's not very well worded and if that happens, please feel free to remake it but provide more details.

    Thanks!

    Comment

    • ashtari66
      New Member
      • Nov 2011
      • 2

      #3
      hi , my code is:
      PIcB_Document.I mage = Image.FromFile( Str_Address + "File\\" + Glb_Sp_Subscrip tionFileResult1 .FileID + ".Tif");
      FrameDimension FrameDimension1 = new FrameDimension( PIcB_Document.I mage.FrameDimen sionsList[0]);
      PIcB_Document.I mage.SelectActi veFrame(FrameDi mension1, 0);

      Comment

      • GaryTexmo
        Recognized Expert Top Contributor
        • Jul 2009
        • 1501

        #4
        So once again, how large are your images? (in Mb)

        Also, while your image loading code looks fine, I've never used FrameDimensions . I did some quick googling and it looks like it's for animation, but tiff files don't normally have animation. What's the purpose of the frame code here?

        Also, how many images are you loading? Just the one or are there many?

        Comment

        Working...