DEEPZOOMAPI

cs_Scooper Messages postés 71 Date d'inscription jeudi 2 octobre 2003 Statut Membre Dernière intervention 12 septembre 2013 - 24 juil. 2008 à 18:45
cs_Scooper Messages postés 71 Date d'inscription jeudi 2 octobre 2003 Statut Membre Dernière intervention 12 septembre 2013 - 24 juil. 2008 à 18:45
Cette discussion concerne un article du site. Pour la consulter dans son contexte d'origine, cliquez sur le lien ci-dessous.

https://codes-sources.commentcamarche.net/source/47401-deepzoomapi

cs_Scooper Messages postés 71 Date d'inscription jeudi 2 octobre 2003 Statut Membre Dernière intervention 12 septembre 2013
24 juil. 2008 à 18:45
Salut, je ne suis pas sur mais on dirait qu'il y a une erreur dans la fonction GetCodecInfo :
if (format ImageFormat.Jpeg && format ImageFormat.Png)
throw new ArgumentException("Invalid image format. Actually, DeepZoom supports only Jpeg and Png image format.");

d'apres l'exception le test devrait plutôt être :

if (format != ImageFormat.Jpeg && format != ImageFormat.Png)
throw new ArgumentException("Invalid image format. Actually, DeepZoom supports only Jpeg and Png image format.");
Rejoignez-nous