PhotoCamera.FocusAtPoint Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Starts a camera auto focus operation on a specific point in the viewfinder, for those devices that support it.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Parameters
- x
- Type: System.Double
The horizontal location in the viewfinder; a value between 0 (left) and 1.0 (right).
- y
- Type: System.Double
The vertical location in the viewfinder; a value between 0 (top) and 1.0 (bottom).
Important Note: |
|---|
This method is not supported by all devices. Use the IsFocusAtPointSupported method to check whether focusing at a specific point is supported before you call the FocusAtPoint method. |
Success and completion of this method can be determined by the AutoFocusCompleted event. For more information about how to implement this member, see How to use camera focus in an app for Windows Phone 8.
Important Note: