Fun with DeepZoom

I've been experimenting a little bit with DeepZoom, a new extension for Silverlight, currently in beta from microsoft. This works together with the MultiScaleImage control from silverlight, giving you a very performant and smooth picture browsing experience.

It does this by dividing a large image into 256x256 squares and building a pyramid of smaller sized images, again divided into 256x256 squares, up until it reaches a single pixel image. This adds 33% of extra space required on disk, which I believe isn't very much.

This way it can load the squares it needs at the right zoom level, reducing the amount of pixels downloaded (at the same time).

To try this yourself, you first need the the Deep Zoom Composer utility:

http://blogs.msdn.com/expression/archive/2008/03/05/download-the-preview-of-the-deep-zoom-composer.aspx

Start it up and create a new project:

DZ_CreateProj

On the Import tab click the "Add Image..." button and import any picture you want:

DZ_Ïmport

Next click on the Compose tab and position your pictures the way you want:

DZ_Compose

And as the last step export your stuff (first choose a name for your export):

DZ_Export

This will create a directory structure:

Heroes

With Visual Studio 2008, create a new Silverlight project with default settings (with extra web project). Build the project, then copy the above contents into the web project's ClientBin folder (you need to build the project before you will see this folder).

Then in page.xaml first remove the Width and Height properties, then add a MultiScaleImage control with source property pointing to the info.bin file:

 

<UserControl x:Class="DeepZoomDemo.Page"     xmlns="http://schemas.microsoft.com/client/2007"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >     <Grid x:Name="LayoutRoot" Background="White">      <MultiScaleImage Source="info.bin" />    </Grid> </UserControl> 

Build your project and run. That's it!

Next entry will show how to add Zoom and move support to this solution.


Comments (8) -

November 21. 2009 07:27 PM

cash loans

Interesting ... as always - is your blog making any cash advance ? ;)

cash loans

January 8. 2010 12:13 AM

tatuaggi

That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

tatuaggi

January 8. 2010 08:59 PM

free classifieds

I am not much of a guy who thinks in so deeply about web design but I think your post had some valid points in it. Like designers are forced to design stuff within the limited code available and not go beyond it, their innovation is somewhat limited but still I think Web Design won't die! I agree that Amazon and other some big sites won't have a blog but now a days it's very important to have some sort of option available so people can quickly communicate their thoughts. I think Amazon if wants to shift it to that, they can get a customized CMS for themselves.

free classifieds

January 12. 2010 12:05 AM

tatuaggi angeli

Howdy, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can advise? I get so much lately it's driving me mad so any assistance is very much appreciated.

tatuaggi angeli

January 15. 2010 02:42 AM

britt borden neurosurgeon

Great post! I am just starting out in community management/marketing media and trying to learn how to do it well - resources like this article are incredibly helpful. As our company is based in the US, it?s all a bit new to us. The example above is something that I worry about as well, how to show your own genuine enthusiasm and share the fact that your product is useful in that case.

britt borden neurosurgeon

January 15. 2010 08:52 AM

International Trade

Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.

International Trade

January 19. 2010 12:19 AM

n gauge trains

Just wanted to give you a shout from the valley of the sun, great information. Much appreciated.

n gauge trains

January 22. 2010 09:04 PM

online personal loans

If you lose the power to laugh, you lose the power to think.

online personal loans

January 24. 2010 12:38 AM

szerencsej&#225;t&#233;k

There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game.

szerencsejáték

January 25. 2010 07:14 PM

mlm leads

I have recently started using the blogengine.net and I having some problems here? in your blog you stated that we need to enable write permissions on the App_Data folder...unfortunately I don't understand how to enable it.

mlm leads

January 26. 2010 01:35 AM

disegni tatuaggi

The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need!

disegni tatuaggi

February 5. 2010 02:28 AM

mls real estate listings

Well, this is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a marvellous job!

mls real estate listings

February 6. 2010 08:23 PM

star id real estate

You got a really useful blog I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

star id real estate

February 9. 2010 09:06 AM

high life style

I don't think of all the misery, but of all the beauty that still remains.

high life style

February 10. 2010 12:09 PM

european cruise

Hey - nice blog, just looking around some blogs, seems a pretty nice platform you are using. I'm currently using Wordpress for a few of my sites but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it?

european cruise

February 15. 2010 02:32 AM

mini chihuahua

This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article

mini chihuahua

February 22. 2010 01:32 AM

Photo Collage

Hi webmaster, commenters and everybody else !!! The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need!b Keep 'em coming... you all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!

Photo Collage

February 25. 2010 09:49 PM

Future Steel buildings

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

Future Steel buildings

February 28. 2010 02:53 AM

Dr Britt Borden MD

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with the same comment.
Is there any way you can remove me from that service?
Thanks!

Dr Britt Borden MD

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Download the U2U brochure

Download Brochure

Receive the U2U Newsletter. Submit your email address:
 
 


 


Search

rss  RSS

Archive