I have a bitmap image (2000 x 2000) in a ContentPresenter attached to a ScrollViewer. So the image can be zoomed and scrolled.
Is there an easy way to know the x,y coordinates of the mouse in relation to the image? That is to say, as I pass the mouse over the image it returns the corresponding x,y of the pixel over which it passes?
Worse case scenario is to calculate the offset from the edge of the window and then multiply the x,y of the mouse by the scrolling and zooming factor.
I was just wondering if there was a method already built-in to WPF that would handle this.