i have a big image about :(14848 PX width * 14336 PX height ) i used deep-zoom tool and exported the files to silverlight, and used a ‘multi scale image’ control.
the multiscaleimage is 400*400 px .
after the projects starts i want when i click on some where in the image to know the ‘real’ coordinates for the real image not for the width of the multiscale control,considering the panning and the zooming factor…
so if there is a way to know that.i hope you guys help me.
thanx in advance.
i have a big image about :(14848 PX width * 14336 PX height )
Share
The MSDN docs on this are hopeless. This blog post actually defines the terms:
[I copied that definition from the blog post, but the example seems to be wrong: the element coordinates should be 400,200.]
It’s clear then that you want MultiScaleImage.ElementToLogicalPoint to convert mouse coordinates to image coordinates.
The image coordinates are in the range [0,1]. Simply multiply by the original image width/height to get pixel coordinates in the original image.