Re: Can't load TIF files generated from a scan or Office mdi documents
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Dec 2006 00:23:54 +0100
Hello JuanPablo,
I got your image.
The problem here is that the GDI+ CODEC can't read that particular brand of
compressed TIFF. Like I often say, the TIFF spec is too big.
You'll have to either load in another format or perhaps use a thirt-party
image library.
I don't know if FreeImage does thiese sorts of tiffs. Might be worth a try
checking that out.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"JuanPablo Jofre" <JuanPabloJofre@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:4049DCFE-4705-4B61-9B35-23562673C10B@xxxxxxxxxxxxxxxx
Hi,
I'm trying to load images either generated from my scanner or exported
from
an office mdi document using different lines of code and all of the return
the same exception: System.ArgumentException. I know the file is OK
because I
can open with any installed viewers on my PC (IE, ImageViewer, etc)
The code I'm using is:
Bitmap inNodeBitmap = new Bitmap(imageFileName);
Any help on how can I add the right decoder to load the image.
--
Regards,
JuanPablo
.
- Prev by Date: Re: Zoom to center of UserControl in C# using GDI+
- Next by Date: Re: Zoom to center of UserControl in C# using GDI+
- Previous by thread: Re: Can't load TIF files generated from a scan or Office mdi documents
- Next by thread: Out of memory when BitBlt
- Index(es):
Relevant Pages
|