Problem to read tiff file
- From: dharmendratomar2000@xxxxxxxxx
- Date: 1 Jan 2007 22:27:28 -0800
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
.
- Follow-Ups:
- Re: Problem to read tiff file
- From: Architect
- Re: Problem to read tiff file
- Next by Date: Re: Problem to read tiff file
- Next by thread: Re: Problem to read tiff file
- Index(es):
Relevant Pages
|