views:

1090

answers:

1

Hi folks,

I've got a simple ImageSource silverlight control which i have on my canvas. Works fine. Is there any way I can extract the content of an ImageSource to a byte array?

cheers!

PS. Any version of SL will be fine.

A: 

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

James Cadd