seadragon

Openseadragon image cordinates

守給你的承諾、 提交于 2020-01-03 03:34:11
问题 iam doing a project using openseadragon check out the below example. a samle openseadragon image In the Onclick method want to find the cordinates(px,py) of the image.Is there any method?? please help this is ma first openseadragon project. thanks 回答1: When you get a click, it'll be in window pixel coordinates. You can then translate it into viewport coordinates (which go from 0.0 on the left to 1.0 on the right). You can then translate those into image coordinates. Here's how it would look

Downloading image from a canvas: downloaded image is blank

旧巷老猫 提交于 2019-12-12 04:45:44
问题 I'm using Open Seadragon to display deep zoom images on a page. I want to include a link to download the image. I have it mostly working, except the image that gets downloaded is blank. Here is my fiddle Here is the code I'm using function seadragon(){ var url = "http://26.img.americanancestors.org/8e09e1f1-e1e9-4414-a0f5-86a6f09454a2.xml"; var viewer = OpenSeadragon({ id: "databaseviewer", prefixUrl: "../../Scripts/openseadragon/images/", tileSources: url, maxZoomLevel: 20 }); viewer