none
windows phone如何解析gif或者video到图片集合呢? RRS feed

答案

  • Hi,

    引用ImageTools类库后,通过以下代码可以显示GIF图片。

            

    //创建gif控件
    AnimatedImage gifImage = new AnimatedImage();
    Decoders.AddDecoder<GifDecoder>();
    //根据图片字节流加载图片
    ExtendedImage extendedImg = new ExtendedImage();
    GifDecoder dc = new GifDecoder();
    dc.Decode(extendedImg, stream);
    gifImage.Source = extendedImg;

    详细信息请参考:

    http://www.silverlightchina.net/html/zhuantixilie/winphone7/2012/0323/14696.html

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    2013年8月21日 7:19
    版主