Custom overlays on foreground canvas

Dec 9, 2008 at 4:17 AM
Can I add images or even draw lines, rect and text on the foreground layer that will zoom and pan together with the deepzoom layer? If yes, how can I do that?
Coordinator
Dec 11, 2008 at 10:46 AM

Hello, paradox81

I think your question is how to synchronize any controls outside Jellyfish with subimages in Jellyfish.

About zoom, change zoom value of controls ("ScaleTransform" or something) placed in foreground layer synchronizing zoom value of Jellyfish ("zoom" means "CurrentZoom" property or 1/Msi.ViewportWidth).
About pan, use "getSubImagePoint" method in Jellyfish to get subimage's axis in pixels. And synchronizing any controls outside Jellyfish with subimages in Jellyfish.

It will be useful for you to use "Completed" event of Storyboard to synchronize controls with subimages, like using "onEnterFrame" in Flash.

I think it will be help for you to read "Jellyfish_FAQ.pptx" of page 9 that is included our documents.

Thanks.