Hi, Milestone support,
We have started to develop the Area Zoom function and have the below questions.
- According to the document published in Milestone website, Area zoom implementation - Third-party integrations | Milestone Documentation 2024 R1 (milestonesys.com).
zoomfactor = targetview(height)/current(height)
A value of 0.5 means the target view’s width or height is half in relation to the current view’s width or height, and an object in the target view is twice as big compared to the same object in the current view. A value of 1.0 means that the target view’s width or height is the same as the current view’s width or height and thus Zoom is not necessary.
Values below 1.0 specify Zoom In, values above 1.0 specify Zoom Out. (Please note that the Zoom Out values are specified only for completeness of the specification, and in XProtect it is not possible to perform Zoom Out via Area Zoom).
- We draw an area to zoom in the area selected, so the zoomfactor will be below 1.0.
- But in my test, the x values sent from Milestone are above 1.0. I did 3 tests, the x values are 1.91619885, 4.19337082, and 15.1139297.
- If the area I draw is smaller, the X value in zoom-in is bigger. So it conflicts with the documentation definition.
- Please help to clarify how to implement the Area Zoom. Thank you so much.

