/// <summary> /// 设置相机对焦模式 /// </summary> /// <param name="mode"></param> public override void SetFocusMode(SCameraFocusMode mode) { //m_cameraDeviceBehaviour switch (mode) { case SCameraFocusMode.Continousauto: m_cameraDeviceBehaviour.Device.SetFocusMode(CameraDevice.FocusMode.Continousauto); break; case SCameraFocusMode.Infinity: m_cameraDeviceBehaviour.Device.SetFocusMode(CameraDevice.FocusMode.Infinity); break; case SCameraFocusMode.Macro: m_cameraDeviceBehaviour.Device.SetFocusMode(CameraDevice.FocusMode.Macro); break; case SCameraFocusMode.Normal: m_cameraDeviceBehaviour.Device.SetFocusMode(CameraDevice.FocusMode.Normal); break; case SCameraFocusMode.Triggerauto: m_cameraDeviceBehaviour.Device.SetFocusMode(CameraDevice.FocusMode.Triggerauto); break; } }
/// <summary> /// 设置相机对焦模式 /// </summary> /// <param mode="mode">对焦模式</param> public abstract void SetFocusMode(SCameraFocusMode mode);