Introducing DotNetFunda.com on mobile http://m.dotnetfunda.com ! Be with DotNetFunda.com on the go !
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5795 |  Welcome, Guest!   Register  Login
Home > Articles > Silverlight > Introduction to DeepZoom Silverlight 3

Introduction to DeepZoom Silverlight 3

1 vote(s)
Rating: 5 out of 5
Article posted by Vuyiswamb on 3/15/2010 | Views: 4286 | Category: Silverlight | Level: Beginner red flag


Years ago I came across DeepZoom in a Microsoft Teched Conference that was held in South Africa in Durban. After the conference I wrote an article on the subject. But when it was released it was a wow technology but it was still lacking something. I waited for Silverlight 3 to be released and new DeepZoom came into the picture again, and I was so impressed with the product now. I have demonstrated this in the old article and I must say I wasn’t impressed as am now. In July 2009 DeepZoom was released and I was ready to try it again and I was not disappointed at all.

Using the code

We are going to DeepZoom and Visual Studio 2008 to demonstrate these examples

Start

DeepZoom is not shipped with Visual Studio, but you need to download it for free in Microsoft website (http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=457b17b7-52bf-4bda-87a3-fa8a4673f8bf ). After you have downloaded DeepZoom install it and start working on it. Open DeepZoom and the first time you open it you will have a project less template, but because I have used it before I will have some project listed as depicted here

In your case, create a new Project and you will be presented with the following dialog box

Select the location of your project and give your project a name as depicted above. After you click ok you will be taken to black work space. At the top you will notice there are steps that you need to follow.

The First one says “Import” now this means you have to import your images and the next one says “Compose”, in this step you compose your DeepZoom application as we will do it later. And the last part is the Export. This will be the final Silverlight project that DeepZoom will create. First I have photos of a house that I will demonstrate with. On the right corner of your DeepZoom, you will notice that there is a Button that says “Add Image” as depicted below

Click the Add image and browse to the images, please note that you don’t need to add them one by one, you can multiselect and all the images will be added. After all the images you want for your project, the images will be added on your right hand pane as depicted below

On the above Steps, Click on the Compose Step and you will be taken to an empty working area but the images will appear on the bottom. In this step we place images where we want them to appear. Drag the images and drop them into the black working area as depicted below

Now I have my house plan, but I want hide images in that plan and when someone wants to view my house images, he can click on it and it will show the house. My house plan image will be adjusted so that it can fit the page and the working area as depicted below. 

Each Label in the house plan will be associated with the mage that will represent that room. Drag the image that show the living room and decrease the size with the image handles so that it can no longer be visible as depicted below

Leave it so that the user will be able to see it and click on it, do the same to other labels and when done you will have something like this

As you can see I have a bathroom that is not labelled but I have places an image for it, the kitchen has an image; the entrance has its image and the living room. Now our Silverlight composition is done. Click on the last step the “Export” and you will be presented by the following

Change the “Custom” tab and you will be presented with the following

Choose the options as I have and give our Silverlight application that will be created by DeepZoom a name as I did above. When done click the “Export” button to create a Silverlight Project. A progress bar will appear and when it is done exporting, four options will appear as depicted below

To test your nice work, click on the “Preview in Browser” option and you will see something like this

Let us start in at the entrance, as you can see there is a small image, click on it once and a zoom “+” sign will appear and if you click it again it will make the image outgrow the house plan. If you want to go back to the main plan image, you have to select the home shortcut on your left top corner of your page on the toolbar depicted below.

The Previous DeepZoom did not have this capability. You had to click many times to see the image clearly and this time I will be capable of showing off my house with only few clicks. When done testing your application close DeepZoom and go to your project directory because DeepZoom will have created a Silverlight Project for you. The discussion of the Project Files that has been created for visual studio is beyond the scope of this article.

Conclusion


In my future article I will demonstrate on how to add this nice feature into your asp.net application.

Thank you for visiting DotnetFunda
Vuyiswa Maseko

 

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Experience:8 year(s)
Home page:http://www.Dotnetfunda.com
Member since:Sunday, July 06, 2008
Level:NotApplicable
Status: [Member] [MVP] [Administrator]
Biography:Vuyiswa Junius Maseko is a programmer and a moderator in ".NetFunda. Vuyiswa has been developing for 8 years now. his major strength are C# 1.1,2.0,3.0,3.5 and sql and his interest are in Silverlight,WPF,C#. He has been doing a lot of Silverlight development. He has been using .net since the beta version of it. He is also an online Trainer at www.Itfunda.com. Thanks to people like Sheo Narayan (.Netfunda) , Chris Maunder (codeproject), Colin Angus Mackay (codeproject), Dave Kreskowiak (Codeproject),.They have made vuyiswa what he is today.
>> Write Response - Respond to this post and get points
Related Posts

In this article we will look how we can do database operations using SilverLight. We will first try to understand why we cannot call ADO.NET directly from a silverlight application and then we will browse through 7 steps which we need to follow to do database operation from silverlight.

In this article, we will look into some of the aspects of Silverlight Datagrid as a) Create a custom entity and bind to DataGrid through code using AutoGenerated Column On b) DataGrid binding by manually defining columns using Column Collection c) Paging in DataGrid using DataPager and PagedCollectionView class d) Displaying images in DataGrid

In this article, we are going to learn how to interact with Audio and Video devices in Silverlight

A Complete walkthrough of creating Pie Chart with advanced features.

In this chapter you will learn about the very basic informations on Silverlight, it’s System Requirements and the pre-requisite to create a Silverlight application. After reading this chapter you will came to know about XAML, XAP file, Application XAML and how to host a Silverlight application.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2012 8:03:01 AM