Posted 14 April 2021, 4:33 am EST
We’re using the C1Image control in our UWP application and are having issues with the reported pointer position from the image control when images are rotated. I’ve attached a sample app to this post that demonstrates the problem.
If you run the sample app, you’ll notice that image zooming and panning works fine for non-rotated images. But once the image is rotated, the reported pointer position from the image control is wildly inaccurate.
In this sample app, you control the image scaling (zoom) via the mouse wheel, and control the image center position (pan) by holding down the left mouse button, dragging the image to the desired position, and releasing the mouse button.
Please let us know how to properly zoom centered on the pointer position and how to pan a rotated image with the C1Image control. Of course, we’ve tried the obvious things like applying the scale factor and rotation to the reported pointer position, but the problem seems deeper than that. The coordinates reported back from the image seem to be extremely erratic and not useful for making this work in our app.
Tower Engineering Systems