Silverlight DeepZoom

by chipaubry 3/8/2008 3:27:00 PM

One of the new features Microsoft released with the Silverlight 2.0 Beta 1 is called DeepZoom. The Hard Rock Memorabilia website is a fantastic example of this technology.  I decided to take a dive into this new feature and see what it would take to get a basic demo up and running.

The Deep Zoom Composer was also released and this is where you really need to start. This tool will import your photos for you and export them in a tiled format that the control expects.  This is similar to how Google Maps works. I started with the tif source of this image, added it to the composer, and exported the photo.  I only used one photo for this example, but you could create a composition of hundreds of photos.

   nw_img

Now that I have my image in the right format, I need to start my Silverlight control. I created the control using Expression Blend. Since Deep Zoom is just a XAML control, this is relatively simple. Here is what it looks like:

<UserControl x:Class="DeepZoom.Page"
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    KeyDown="deepZoom_KeyDown">
    <StackPanel Background="LightGray">
        <MultiScaleImage Source="nw/info.bin" x:Name="deepZoom" ViewportWidth="1.0" />
    </StackPanel>
</UserControl>

I have bolded the attribute that points to the exported image. This is how we tell the control where our exported image composition is on the server.

Next, I need to open the control's C# codebehind to support the mouse and keyboard events so users can interact with the image. I will spare you the C# code for now, but here is the result:

  • Click on the image to zoom.
  • Shift-Click to zoom out.
  • I will zoom in
  • O will zoom out
  • Click and drag to slide the image around

 See if you can find the metal 9 on the jeans.

Currently rated 4.8 by 5 people

  • Currently 4.8/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Do try this at home

by chipaubry 3/5/2008 3:17:46 PM

Microsoft released Silverlight 2.0 Beta 1 during the keynote.  Download away and install (if you have the rights):

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

I'm blogging!

by chipaubry 3/5/2008 2:38:25 PM

I just wanted to post a quick add-on to what Paul posted about the keynote. The release of IE8 Beta 1 means we will have an opportunity to proactively work with our clients to prepare for its ultimate release. Beyond its new features, the manner in which is renders HTML is far more standards compliant than previous IE releases. While this is a good thing, we will want to make sure our sites render correctly as this product moves toward release and keep our clients informed of the impact.

 

More to come...

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

MIX Keynote, in progress summary...

by chipaubry 3/5/2008 1:17:55 PM

Some cool announcements from the keynote. Following is a quick recap of the big stuff.

  • IE 8 Beta 1 announced. Default rendering is "standards mode" -- designed to enable minimal-to-no tweaking between Firefox, Safari and IE.
  • Silverlight 2, Beta 1 announced. First demo focused on banner ad creation using Expression and Visual Studio with pre-defined templates supported by both DoubleClick and Atlas.
  • NBC.com/Olympics. Demonstration of their "work in progress." All Olympics coverage (2200 hours of footage) will be available live and on demand. Live feeds will present 4 simultaneous streams that can be swapped. NBC partnered with Schematic to develop. Amazing demo, even though it was a work in progress.
  • Expression Encoder 2 enables the quick creation of pre-roll content, and control over playback techniques. Also enables "burn-in" of scripted ad overlays over the video.
  • New Aston Martin site is Silverlight based.
  • Silverlight for mobile devices. To be released for both Windows Mobile and Symbian devices. Enables the creation of iPhone-style rich applications -- that don't need to be approved by Apple. Unlike Flash mobile, a developer can write one application and deploy to multiple devices.

Obviously, it was surprising to see DoubleClick support Silverlight as an ad platform.

Update:  watch the keynote here


Watch the Live Streaming Keynote: Ray Ozzie, Dean Hachamovitch, and Scott Guthrie

 

 

 

 

More to come.

Currently rated 4.5 by 2 people

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Recent posts


<<  November 2008  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Recent comments

Archive

Categories

None


Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in