惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
Schneier on Security
Schneier on Security
T
Threatpost
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
罗磊的独立博客
Security Latest
Security Latest
D
Docker
S
Secure Thoughts
博客园 - 聂微东
A
Arctic Wolf
Recorded Future
Recorded Future
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
Blog — PlanetScale
Blog — PlanetScale
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
T
The Blog of Author Tim Ferriss
Latest news
Latest news
AWS News Blog
AWS News Blog
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
F
Full Disclosure
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
小众软件
小众软件
宝玉的分享
宝玉的分享

博客园 - Amanda2007

用户中心 - 博客园 用户中心 - 博客园 RotateTransform的CenterX和CenterY和元素的RenderTransformOrigin属性与 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 为什么silverlight的PasswordBox控件的password属性不可以绑定?该如何实现绑定? 用户中心 - 博客园 如何获取silverlight 应用程序的版本号。 如何自定义datagrid控件的某一行。 鼠标进入离开DataGrid的行的操作。 背景图片的自适应 在网页上设置容器的高度的百分比。 为canvas添加背景图片
Silverlight不支持GIF或BMP文件格式
Amanda2007 · 2009-04-23 · via 博客园 - Amanda2007

很多人对此表示惊讶,但确实无法把silverlight Imagesource属性(或ImageBrushImageSource属性)设置为一个GIFBMP文件。必须把他们转化成受支持的2中格式之一:PNGJPEG。而且,silverlight并不支持用这两种格式创建的所有类型。例如,不支持64位每像素图像。

值得庆幸的是,PNG是替代GIF的上佳之选。(实际上,他就是设计用来替代GIF文件的。)PNG使用的是无损数据压缩,它支持全alpha通道,可以实现透明和半透明效果。GIFPNG唯一好的地方在于它支持动画。JPEG虽然是有损压缩且缺乏透明的支持,但他确实是照片的最佳选择。(目前使用的任何照片用的都是JPEG格式。JPEG对于存储照片而言有许多优点,例如它支持来自数码照相机的Exif数据。)

即使希望使用动画GIFsilverlight中并没有一种自动的方式来显示这样的GIF。最简单的解决方案是把HTML IMG元素放在无窗口的Silverlight内容之上