开发者

Extract the stream from a Silverlight image control

Is it possible开发者_运维技巧 to extract the steam (or something similar) from a silverlight image control?

I figured you could get the stream from the Image.Source property, but so far that has been a dead end option.

Thanks.


In general, the answer is no. The reason being that the image element is not constrained by the same cross-domain limitations that most other network traffic is subjected to in Silverlight (i.e. you can display an image accessed cross-domain, but your application can never access the image data).

In order to get access to the underlying bits of an Image, you can get the image's source URI and then use WebClient to request the stream (assuming that your app has the appropriate access to that server).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜