Expression >
Forums Home
>
Related Technologies Forums
>
Deep Zoom Composer
>
deepzoom - image tagging
deepzoom - image tagging
Am using Image creator and collection creator class to create my image tiles. How will i add the tag information to the images which i generate programatically, so that i can use the tags to sort them progamatically. How will i genearte the metadata.xml for all my images.i have seen lto of tutorial performing using the expression blend tool, but i want to achieve in code.
Anyhelp will be higly appreaciated.
All Replies
- Howdy,
Yes.. I too was stumped with this one.
Someone will correct me I am sure, but I found no way of assigning this value so it would show up in any of the .xml files produced by the DZT api.
My only work around for this was to create a ZOrder.xml file which contains the list of filenames processed in order when writing output calling the API. It would appear that there is no other place to determine this. The output file ID's was one I thought maybe but it appears to be incorrect as well.
One you have your ZOrder.xml file, read it back in at Load time of the MSI element and store it all in a Dictionary<string,int>... The filename is the only common element across all output .xml files, so you can then read that value in and query the dictionary to get the zorder.
HTH
CheersExpression MVP
- Brennon, you are correct. There is no way today to assign a tag to an image using DZT. In Deep Zoom Composer, we generate the metadata.xml file separately similar to what you are doing.
Cheers!
Kirupa :)
Kirupa & Brennon,
i generated the metadata.xml with the image tags. i used the image tagging example project http://blog.kirupa.com/?p=212 to generate the tagging feature.
But i need to achieve this in my application.
I am basically stuck while reading the metadata.xml which is stored in the directory other than the silverlight directory.
Because i generate this xml outside the silverlight project and trying to access this file in the silverlight directory fails.
i tried using the IsolatedStorage class for this but it did nto work, bcoz am generating the metadata outside the silverlight project.
I am also wondering how the output.xml teh MSI source is accessible by the silverlight application.
Anyhelp will be highly appreaciated.- Hi spskumar,
I also worked with the tagging example of kirupa posted in his blog and got it working in my app.
I use the DeepZoomTools.dll to generate the DZ dynamically with ImageCreator and CollectionCreator and
wrote a little method that generates the Metadata.xml for me where I also put some additional data to each
image coming from a DB.
The generation process of DZ and Metadata are made in one class and stored in the same folder in
App\ClientBin\Generated. Where do you store the xml and the DZ?
- "I use the DeepZoomTools.dll to generate the DZ dynamically with ImageCreator and CollectionCreator and
wrote a little method that generates the Metadata.xml for me where I also put some additional data to each
image coming from a DB."
i did the same thing, but the generate images folder is not in the clientbin folder.
my requirement is to generate images dynamically with the metadata.xml which i am able to do now.
i have to read these files stored in the directory, but silverlight has no access to his directory.

