How Do I Use OpenZoom with Deep Zoom Composer Output?
Daniel,
Sorry, but my brain is obviously just not working. I have tried various things to get the image to render correctly but I think I'm now goig around in circles...
I have my AS code delared thus:
import org.openzoom.flash.descriptors.deepzoom.DeepZoomImageDescriptor;
private var path:String = "GeneratedImages/dzc_output.xml"
private var xml:XML = <image>
<size height="2576" width="1932">
</size></image>;
[Bindable]
public var image:DeepZoomImageDescriptor = DeepZoomImageDescriptor.fromXML(path, xml);
and my MXML:
<mx:panel title="MultiScaleImage" height="286" width="620">
<openzoom:deepzoomcontainer height="210" width="580">
<openzoom:transformer>
<transformers:tweenertransformer>
</transformers:tweenertransformer></openzoom:transformer>
<openzoom:controllers>
<controllers:mousecontroller>
</controllers:mousecontroller><controllers:keyboardcontroller>
</controllers:keyboardcontroller></openzoom:controllers>
</openzoom:deepzoomcontainer>
</mx:panel>
I ahve also tried using it with the output from DSC coming as both a collection and a composition, but I definitely can't get the reuslts I want. I had a look at the getLevelForSize() method, but am confused as to how to iplement it correctly.
Any pointers you can give will be very gratefully received.
Sincerest regards,
Huw Davies.
Sorry, but my brain is obviously just not working. I have tried various things to get the image to render correctly but I think I'm now goig around in circles...
I have my AS code delared thus:
import org.openzoom.flash.descriptors.deepzoom.DeepZoomImageDescriptor;
private var path:String = "GeneratedImages/dzc_output.xml"
private var xml:XML = <image>
<size height="2576" width="1932">
</size></image>;
[Bindable]
public var image:DeepZoomImageDescriptor = DeepZoomImageDescriptor.fromXML(path, xml);
and my MXML:
<mx:panel title="MultiScaleImage" height="286" width="620">
<openzoom:deepzoomcontainer height="210" width="580">
<openzoom:transformer>
<transformers:tweenertransformer>
</transformers:tweenertransformer></openzoom:transformer>
<openzoom:controllers>
<controllers:mousecontroller>
</controllers:mousecontroller><controllers:keyboardcontroller>
</controllers:keyboardcontroller></openzoom:controllers>
</openzoom:deepzoomcontainer>
</mx:panel>
I ahve also tried using it with the output from DSC coming as both a collection and a composition, but I definitely can't get the reuslts I want. I had a look at the getLevelForSize() method, but am confused as to how to iplement it correctly.
Any pointers you can give will be very gratefully received.
Sincerest regards,
Huw Davies.
3
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Daniel,
Slightly confused - I don't think my code hasn't come across properly, I'll send it in an email.
Huw. -
Inappropriate?Huw,
Thanks for your email. I'm sorry, it's my fault you've started on the wrong track. The DeepZoomContainer is still under development and not ready for usage. Please use the MultiScaleImage component to load Deep Zoom images.
BTW, you can specify the source property as URL String, so there's no need to create a DeepZoomImageDescriptor instance in your case. The DeepZoomContainer component is not there to confuse people but rather support Deep Zoom collections in the future. In OpenZoom, MultiScaleImage, as the name implies, only supports a single image. This should also answer the second question about the Deep Zoom collection file format: Support for it is currently still under development.
Cheers,
Daniel
P.S. Have a look at the included samples which should run out of the box.
The company says
this answers the question
-
Inappropriate?Daniel you're a genius - it works like a charm! I also really like the inbuilt support for the mouse handling! You wouldn't believe the lines of code I had to steal from the Deep Zoom output to get that to work in Silverlight.
Good luck with the ongoing developments.
Huw.
I’m a very happy bunny
-
Inappropriate?Huw,
Glad it worked out. Yeah, it's ridiculous how everyone in the Silverlight community reinvents the wheel regarding mouse navigation. If you want to read more about it, I've written an introductory article about the Flex MultiScaleImage component:
http://gasi.ch/blog/flex-multiscaleim...
Cheers,
Daniel
P.S. In my opinion, the transformer and constraint system is equally elegant. Check it out.
Loading Profile...




EMPLOYEE