Silverlight - WriteableBitmap的跨域调用限制
来源:互联网 发布:神舟z7编程 编辑:程序博客网 时间:2024/06/11 03:52
Silverlight 3中增加的WriteableBitmap 大大方便了图片编辑。最近使用了.NET Image Tools,其中很多编辑功能都是基于对WritableBitmap的操作。项目中有一个Image的Source是来自不同域下的Uri,使用.NET Image Tools是遇到了一个异常"Cannnot acess Bitmap" , 搜索到一个讨论,才发现WriteableBitmap也有跨域调用下的限制:
The WriteableBitmap class has a security model that restricts access to the Pixels array, if the WriteableBitmap is constructed using cross-domain content. For example, a WriteableBitmap that is constructed using a BitmapImage referencing a URL that comes from another domain does not permit access to its Pixels array. The restriction extends to any UI element that uses a URL-derived property for setting some or all of its content. In particular, this restriction applies to the "Grab a frame of a running video from MediaElement" scenario. If the MediaElement.Source references a video file from another domain, the WriteableBitmap created by referencing the MediaElement as the element source restricts access to the Pixels array.
- Silverlight - WriteableBitmap的跨域调用限制
- Silverlight之WriteableBitmap的使用
- Silverlight for WP only - 没有跨域调用限制
- Silverlight 3.0 中的 WriteableBitmap
- Silverlight 3.0 中的 WriteableBitmap
- Silverlight中实现WriteableBitmap转为Byte流
- Silverlight缩略图生成(使用WriteableBitmap类)
- WriteableBitmap的赋值问题
- WriteableBitmap 的使用
- Silverlight 跨域调用策略
- WriteableBitmap
- silverlight调用webservice跨域导致问题的解决方法
- Silverlight调用Webservice出现的跨域问题
- JS另类跨域调用,突破浏览器限制的妙招!
- JS另类跨域调用,突破浏览器限制的妙招!
- [WP7]Silverlight: Creating a WriteableBitmap from a Uri Source
- silverlight跨域调用wcf总结
- Silverlight 调用WCF 跨域访问
- Visual.Assist.X.V10.6.1849的破解补丁,正式发行版本,推荐更新 2011.05.23(General release.)
- os 模块
- Chain of Responsibility (C++实现)
- log4j获得日志文件输出路径
- Schema元素(2)
- Silverlight - WriteableBitmap的跨域调用限制
- log4j配置说明
- oracle创建表空间(20110527)
- linux安装新字体
- video4linux(v4l)使用摄像头的实例基础教程与体会
- [游戏]_dnf开70,恋梦の依旧上尊路开始
- void指针
- 【图形学】边标志算法or边界标志算法(无错误版)
- libgdx-action