2009-09-08 5 views
1

Je rencontre un problème lors de l'exécution d'une image à partir d'un fichier cmyk + alpha TIFF lzw codé sous Windows 7 x86 . L'appel FromStream déclenche une exception System.ArgumentException: Le paramètre n'est pas valideRunning Lorsque j'exécute le code sur Vista ou Server 2008 (bits x86 et x64), cela fonctionne.Problème sous Windows 7 en utilisant Image.FromStream pour ouvrir le fichier cmyk + alpha tiff

using System; 
using System.Drawing; 
using System.Drawing.Imaging; 
. 
. 
.   
using (FileStream stream = File.OpenRead(fileName)) 
{ 
    using (Image image = Image.FromStream(stream, false, false)) 
    { 
    // Do something with the image 
    } 
} 

Répondre

0

Si elle travaillait avec les versions précédentes de Windows, il pourrait y avoir un bug dans Win7 ... Vous devriez probablement déposer un bug à Microsoft Connect

Questions connexes