Re: Can't load TIF files generated from a scan or Office mdi documents

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: vb.net Multipage TIFF
    ... So, just like drawing on a screen, you can draw on an image providing you can get a Graphics object for it. ... Tiff images with multi-pages cannot be saved just like that, in fact, as seen in the article you have to reconstitute an image with all the old pages and the ones you've changed creating a new image altogether. ... GDI+ is a relatively powerful, yet low-level system that has few refinements and very little abstraction. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: vb.net Multipage TIFF
    ... Bob, I also contacted Michael through your US number in hopes of maybe ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... I had no idea that converting text to tiff was such a big ordeal. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: vb.net Multipage TIFF
    ... There are several libraries available that can read PCL formats but from what I've sen they run into the thousands of dollars. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... Presumably using the above method to finalize the Tiff transormation, What do I use to read the PCL? ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: vb.net Multipage TIFF
    ... How do I convert from that PCL to TIFF? ... Presumably using the above method to finalize the Tiff transormation, ... GDI+ is a relatively powerful, yet low-level system that has few ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Use Ghostscript from C#
    ... method and delete it after you load it via a stream. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ...
    (microsoft.public.dotnet.languages.csharp)