Поделиться через


Sample Updates for Beta 2

I updated a few of my most recent samples to work with the Beta 2 version of Silverlight 2. You can find general information on Beta 2 in the getting started section on Silverlight.net. Scott Guthrie also has a good write-up on some of the new features in Beta 2 and you can find that here.

You can find a Beta 2 version of the DeepZoom Silverlight 2 Developer Reference Poster sample here. To build this sample, I used the Beta 2 update of the DeepZoom Composer. You can find more information about this tool including a download link here. Here’s a screen shot of updated sample:

 

DeepZoom sample

 

I updated and enhanced the Silverlight PNG encoder sample. I fixed a few bugs in the Pixel APIs reported by folks from the community (thanks if you were one of those). I also updated the Mandelbrot part of this sample to support zooming – which is really the cool part of the Mandelbrot set. You can find the Beta 2 source for this sample here. Here’s a screen shot of the updated sample:

 

PNG Encoder Sample

To further test the Pixel APIs, I wrote a BMP decoder and then connected that to the PNG encoder to create a sample that supports display of any standard BMP file. As part of this sample, I wrote a few image filters on top of this including a Sepia tone filter. You can find a Beta 2 version of the sample here and the source here. Here’s a screen shot of this sample:

 

BMP Decoder Sample

Similar to the BMP decoder sample, I took Jill Zhang’s .NET based GIF Utility sample from CodePlex and ported it to Silverlight to create a Silverlight based GIF decoder. I used this with the PNG encoder to create a sample that does GIF decode and display in Silverlight. The GIF Utility supports reading all GIF frames (e.g. Animated GIF support) and my sample shows how you can use this to support animated GIFs in Silverlight. You can find a Beta 2 version of the sample here and the source here. Here’s a screen shot of this sample that shows the results of reading a GIF with multiple frames:

 

GIF Decoder Sample

Comments

  • Anonymous
    June 08, 2008
    The comment has been removed

  • Anonymous
    June 08, 2008
    On the heels of yesterday's 17 links, there's 11 today, and at least one other hidden away. I've

  • Anonymous
    June 24, 2008
    Silverlight 2でサポートされている画像ファイルはBMPとPNGだけです。SilverlightでどうしてもGIFを表示させたい人は Joe Stegman が作った GIF decoder

  • Anonymous
    June 24, 2008
    Hi Joe! Nice to see your examples updated. The mandelbrot has a bug if you're just clicking on the image the app fails. hth, Attila