开发者

How do I show a DDS image in a Windows Phone 7 Silverlight app?

I've got a Windows Phone 7 Silverlight app, and I'd like to display a DDS image. I tried simply doing this:

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <Image Source="c:\sample.dds"  />
</Gr开发者_如何学运维id>

but nothing shows up. Is DDS not a valid image format for Silverlight?


DDS is not valid in Silverlight. Only JPEG and PNG are natively supported. The DDS image will need to be converted first or you'll need to get/develop an decoder (see http://imagetools.codeplex.com/ for example of .gif and .bmp decoders).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜