Skip to main content

Microsoft Silverlight

Answered Question Using multiscale image for a photo collection site.RSS Feed

(0)

uripelli
uripelli

Member

Member

0 points

8 Posts

Using multiscale image for a photo collection site.

I'm building a photo collection site. Eventually it will have a few thousand pictures. At first I'm going to upload big quantities of pictures, each tagged in a database and named according to the ID given to it by the Database. Later on I will allow people to upload their own pictures to the collection. Their pictures will be entered automatically to the database according to the data they will provide. The name of the picture they will send should be automatically changed according to the Id given to the picture by the data base. The goal is that people will be able to search for pictures in the database and get the images that match their search criteria. I want to use multiscale to present the pictures in their detailed view mode for the site's visitors. I'm wondering how can I automatically create multiscale images with names that will correspond to the database ID so I can fatch the correct one every time and wither it is relevant to use this technology in a situation like this or should I use a different technique. Thank You Uri

msalsbery
msalsbery

Contributor

Contributor

2066 points

379 Posts

Answered Question

Re: Using multiscale image for a photo collection site.

uripelli:
I'm wondering how can I automatically create multiscale images
 


You can create multiscale images yourself.

There are several ways to do this programmatically, at various levels.

At the lowest level, the MultiScaleTileSource class makes requests for a URI of each image tile needed for rendering, so if you intercept this request, you can provide the URI for every requested tile, even tiles created on-the-fly on a server by providing a URI for a web service.  This can be done by deriving a class from MultiScaleTileSource and overriding the GetTileLayers method.  You would use your custom MultiScaleTileSource as a MultiScaleImage source.

Next higher level, you could create the common Deep Zoom image XML info file(s), directory structure, and tile images yourself.  You can see the structure by looking at the images Deep Zoom Composer exports.  There's also some documentation:  Deep Zoom File Format Overview

Next higher level, you could use the Deep Zoom Composer APIs provided by the DeepZoomTools.dll,  Bryant has some info here:  Deep Zoom Image Generation with DeepZoomTools.DLL


Mark Salsbery
Microsoft MVP - Visual C++
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities