ZoomInfo Property

Summary
Helper property to get the range, default value, and other information for the CameraControlProperty.Zoom property.
Syntax
C#
C++/CLI
public CameraControlInfo ZoomInfo { get; } 
public: 
property CameraControlInfo^ ZoomInfo { 
   CameraControlInfo^ get(); 
} 

Property Value

A CameraControlInfo object.

Remarks

The information returned for this property is a CameraControlInfo object containing all the related property information.

Example
C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public bool _result = false; 
public CaptureCtrlForm _form = new CaptureCtrlForm(); 
 
public void CameraControlExample() 
{ 
   // reference the capture control 
   CaptureCtrl capturectrl = _form.CaptureCtrl; 
 
   try 
   { 
      // try to find a USB video device. use your device's name here 
      if (capturectrl.VideoDevices["USB"] == null) 
         throw new Exception("No USB video device available"); 
 
      capturectrl.VideoDevices["USB"].Selected = true; 
 
      // reference the camera control 
      CameraControl camera = capturectrl.CameraControl; 
 
      if (camera != null) 
      { 
         // try to set some camera auto properties 
         camera.AutoExposure = true; 
         camera.AutoFocus = true; 
         camera.AutoIris = true; 
         camera.AutoPan = false; 
         camera.AutoRoll = false; 
         camera.AutoTilt = false; 
         camera.AutoZoom = true; 
 
         // now try to set some camera manual properties 
         camera.Exposure = camera.ExposureInfo.Min; 
         camera.Focus = camera.FocusInfo.Max; 
         camera.Iris = camera.IrisInfo.Default; 
         camera.Pan = camera.PanInfo.Min; 
         camera.Roll = camera.RollInfo.Min; 
         camera.Tilt = camera.TiltInfo.Min; 
         camera.Zoom = camera.ZoomInfo.Min; 
 
         // now increment a property by the stepping delta 
         camera.Exposure += camera.ExposureInfo.StepDelta; 
 
         // set the result to what we expect 
         _result = (camera.Exposure == camera.ExposureInfo.Min + camera.ExposureInfo.StepDelta); 
 
         // now check a property to see if it is supported and has a manual setting 
         // if so, set it to auto 
         if (camera.ExposureInfo.Flags != CameraControlFlags.Unsupported 
            && camera.ExposureInfo.Flags == CameraControlFlags.Manual) 
            camera.AutoExposure = true; 
 
         // set the result to what we expect 
         _result &= (camera.ExposureInfo.Flags == CameraControlFlags.Auto); 
      } 
 
      // continue setting capture settings 
      // and possibly start a capture process 
      // ... 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.