At present, if I use the mouse wheel to zoom in on the video, I can use the arrow key function to control the current zoomed position, but if I use the mouse to hold down the left button and drag to zoom in, it seems like I can’t read its zoom value or control it, resulting in that when I use the arrow keys to control, it will jump back to the starting position, how can I fix it?
(issue video link: https://youtu.be/x7n92WHvyuM)
※Here is how I use Milestone SDK to zooming with mouse wheel:
//ZoomIn
VideoOS.Platform.Messaging.Message msg = new VideoOS.Platform.Messaging.Message(
MessageId.Control.PTZMoveCommand,
VideoOS.Platform.Messaging.PTZMoveCommandData.ZoomIn);
EnvironmentManager.Instance.PostMessage(msg, ImageViewWpf1.CameraFQID);
※Here is how I read the value of the zooming:
ImageViewWpf1.EnableDigitalZoom = true;
if (e.Delta > 0)
{
//ZoomIn
if (zoom + zoomlayer < 1000)
{
zoom += zoomlayer;
ImageViewWpf1.PtzCenter(80, 100, x, y, zoom);
}
}
※Here is how I use Milestone SDK to use the arrow key function to control the current zoomed position:
//LeftClick
VideoOS.Platform.Messaging.Message msg = new VideoOS.Platform.Messaging.Message(
MessageId.Control.PTZMoveCommand,
VideoOS.Platform.Messaging.PTZMoveCommandData.Left);
EnvironmentManager.Instance.SendMessage(msg, ImageViewWpf1.CameraFQID);