Esempio n. 1
0
				public CaptureCallbackAnonymousInnerClassHelper(AutoFocusCaptureHelper outerInstance)
				{
					this.outerInstance = outerInstance;
				}
Esempio n. 2
0
		/// <summary>
		/// take multi pictures with different focus distance to produce depth of field image.
		/// one with auto focus and the other with infinity focus
		/// </summary>
		private void takeDofPicture()
		{
			clearInputImages();

			// 1st.auto focus. make helper to capture with auto focus
			AutoFocusCaptureHelper afCapture = new AutoFocusCaptureHelper(this, this);

			// 2nd.infinity focus. make helper to capture with infinity focus
			ManualFocusCaptureHelper infCapture = new ManualFocusCaptureHelper(this, this);
			infCapture.FocusDistance = INFINITY_FOCUS_DISTANCE;

			// set order
			afCapture.Next = infCapture;
			infCapture.Next = null;

			// start capture
			afCapture.start();
		}