Bonjour,
Je cherche à afficher un tableau de byte dans le Bitmap d'un pictureBox.
Voici mon code :
pictureBox.Image = new Bitmap(new MemoryStream(imgArray));
Ceci est censé fonctionner mais à l'éxécution j'ai une erreur ArgumentException car mon tableau de bytes est unidimensionnel mais il a plus de 65 535 éléments (+ de 4 millions en tout).
Due to a limitation of the GDI+ decoder, an System.ArgumentException is thrown if you construct a bitmap from a .png image file with a single dimension greater than 65,535 pixels.
Existe-t-il un autre moyen pour afficher ce tableau dans mon Bitmap ?
Merci pour votre aide
Partager