Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1015661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:26:02+00:00 2026-05-16T10:26:02+00:00

I want to compose my own project in deep zoom composer however I would

  • 0

I want to compose my own project in deep zoom composer however I would like to know on how to add text per image zoomed in just like the hard rock memorabilia

I want to consume it, using silverlight 4.0

As you notice, under right pane, it has its description about the image.

Thank you.

this http://www.freeimagehosting.net/uploads/43b14a3d53.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:26:03+00:00Added an answer on May 16, 2026 at 10:26 am

    This is definitely doable. I’ve done something similar and it worked great. The following example will show information specific to a clicked image. You can modify it depending on if you want the information to be dispayed on mouseover, click, or even when zoomed. It’s entirely up to you.

    First off, add a MultiScaleImage to your canvas…

    <MultiScaleImage  x:Name="deepZoomObject" Source="/GeneratedImages/dzc_output.xml" />
    

    …and somewhere else on the canvas, add a TextBlock to be used to display the information:

    <TextBlock X:Name="tbInfo" />
    

    Next, create a class to hold the information for each “tile”, add some dummy information, and add a bunch of tiles to a List:

        public class TileDetail {
           public int Index { get; set; } 
           public string TileName { get; set; }
        }
        //The Index is the zero based index of the images.  It depends on the index created by DeepZoomComposer.  This is the one piece of information that you absolutely need to know.  I believe the index is based on the order that the images are added to DeepZoomComposer but test to make sure.
    
       List<TileDetail> TileDetailsList = new List<TileDetail>();
    
       TitleDetail td1 = new TileDetail();
       td1.Index = 0;
       td1.TileName = "Tile #1";
    
       TileDetailsList.Add(td1);
    
       TitleDetail td21 = new TileDetail();
       td2.Index = 1;
       td2.TileName = "Tile #2";
    
       TileDetailsList.Add(td2);
    
       //Repeat the above for your remaining tiles always incrementing the Index.  If you're loading information from a DB then you'll need to make sure to have a way to connect the image to its index from DeepZoomComposer.
    

    Now that the list is full of tile information, we need to wire up the MouseLeftButtonDown event handler to detect when an image is clicked and ultimately to determine the index of the clicked image. With the index then we only need to search our list for the appropriate tile details and then display on the canvas.

    In your code-behind, place the following:

       deepZoomObject.MouseLeftButtonDown += delegate(object sender, MouseButtonEventArgs e)
       {
          //Get the index of the image
          int index = GetIndexOfSubImage(e.GetPosition(deepZoomObject));
          //Find the image in the list of images
          TileDetail td = TileDetailsList.FirstOrDefault(t => t.Index == index);
          //Display image info
          tbInfo.Text = td.TileName;
       };
    

    The following is the “secret sauce”. It will find the index of the clicked image.

       private int GetIndexOfSubImage(Point point)
       {
          // Test each subimage to find the image where the mouse is within
          for (int i = deepZoomObject.SubImages.Count - 1; i >= 0; i--)
          {
            MultiScaleSubImage image = deepZoomObject.SubImages[i];
            double width = deepZoomObject.ActualWidth / (deepZoomObject.ViewportWidth * image.ViewportWidth);
            double height = deepZoomObject.ActualWidth / (deepZoomObject.ViewportWidth * image.ViewportWidth * image.AspectRatio);
    
            Point pos = deepZoomObject.LogicalToElementPoint(new Point(image.ViewportOrigin.X / image.ViewportWidth, -image.ViewportOrigin.Y / image.ViewportWidth));
            Rect rect = new Rect(pos.X, pos.Y, width, height);
    
            if (rect.Contains(point))
            {
               // Return the image index
               return i;
            }
          }    
          return -1; //if there is no corresponding subimage
        }
    

    And that’s it. As long as your image indexes have a corresponding image in your list then clicking on an image inside of the MultiScaleImage object will result in the image info being displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to display an image composed of two images. I want image
I want to create a flare image using imagemagick and then add text on
want to know why String behaves like value type while using ==. String s1
I would like to add a simple template language to my application based on
I want to implement email application which has all options like inbox,compose,drafts and etc.
I have compose one small application in which I want to add 20 radio
I have a lot of small images like that I want to compose into
I want to insert a UIImage s inside the compose sheet of an MFMailComposerViewController
I am working in SMS message compose iPhone app. I want to design the
I want to use Imagemagick to add a transparent gradient from the left and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.