How do I convert a Silverlight ImageSource to byte []?

I have a simple Silverlight ImageSource control that I have on my canvas. Works great. Is there any way to extract the contents of the ImageSource into a byte array?

Hooray!

PS. Any SL version will be fine.

0


a source to share


1 answer


I'm not sure if you can get the byte array from the ImageSource component, but you can probably create a BitmapImage and set its UriSource property and then get the byte []. Not exactly the answer to your question, but hth;)



0


a source







All Articles