P5music
P5music

Reputation: 3327

How to display an image from a byte array representing the very bytes of a .png file

I have a byte array that is the very copy of a .png file in memory and I have to display it in a WPF ImageControl. How to do it?

Upvotes: 0

Views: 464

Answers (1)

Jason Williams
Jason Williams

Reputation: 57902

Create a Memory Stream from the array, load the image from the stream, then set the Image in the control.

Upvotes: 1

Related Questions