Problem to read tiff file

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi All,

I have extraced a tiff image embedded in an EPS file. Its opening in
Document imaging editor and Irfan view but not in paint.
My current work reuires to create a thumbnail of the above extracted
image, for this I have tried the following code.
On using Image.FromFile or Image.FromStream API's, Application raises
exception like "Out of memory"or "Invalid parameters" sequencially.
To verify the above problem I also tried with other tiff, jpg, bmp
image's which much bigger size with same permissions. They worked as
desired with no exceptions.

Please let me know if I am missing something or there is some other way
to use tiff preview embedded in EPS files.

Code :

Image img = Image.FileFrom("C:\\BBB.tiff");
or
FileStream fs = File.OpenRead ("C:\\BBB.tiff");
Image img = Image.FromStream(fs,false);

Please suggest me what can I do to remove this error....

Thanks in advance.
- Dharmendra

.



Relevant Pages

  • Re: Image imports & Background images to Word X on Mac
    ... I tried to import an Illustrator CS EPS file but when I went ... > best bet is to utilize a tiff from Photoshop CS. ... Publish as PDF. ... If you have InDesign2, then ...
    (microsoft.public.mac.office.word)
  • Re: Change TIFF to JPG?
    ... You can download a free graphics program and use it to convert or save tiff ... It might be that Paint wants only a three ... > | Imaging application opens the file perfectly, ...
    (microsoft.public.windowsxp.newusers)
  • Re: Picture and Fax viewer with tiled TIFFs
    ... I just now opened them on XP with Picture & Fax Viewer ok, but Paint doesn't ... Having written what I presume is a valid tiled TIFF ...
    (microsoft.public.windowsxp.photos)
  • Re: Cannot view "SOME" tiff image with windows picture and fax viewer
    ... Curious George Wrote: ... original since it converted to BMP and went back to Tiff? ... In that case Save as BMP. ... TIF in Paint. ...
    (microsoft.public.windowsxp.general)
  • Re: General GDI+ Error
    ... it seems there is something problem to paint the ... frames in the tiff, but based on test, we can save it with the BMP format. ... Get Secure! ...
    (microsoft.public.dotnet.languages.vb)