Hello,
I have problem with my plug-in for XProtect Smart Client 2016 R2 (10.1a). My plug-in change a camera in existing view, but when I change the camera in the view, the aspet ratio (“Maintain image aspect ratio” check box) restart with the default setting and the aspect ratio is checked, and the user must manually change the aspect ratio parameter of the view. I haven’t see in the smart client a parameter for define the default ratio when a camera is set to a view.
For change the camera in the view I use this code :
Dictionary<String, String> cameraViewItemProperties = new Dictionary<string, string>();
ClientControl.Instance.CallOnUiThread(() => cameraViewItemProperties.Add(“CameraId”, MyCamera.FQID.ObjectId.ToString()));
ClientControl.Instance.CallOnUiThread(() => _viewAndLayoutItem.InsertBuiltinViewItem(0, ViewAndLayoutItem.CameraBuiltinId, cameraViewItemProperties));
Exist a parameter for un-check the “Maintain image aspect ratio” check box ?
Thank’s