FocusAtPoint Method
Collapse the table of content
Expand the table of content

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.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public Sub FocusAtPoint ( _
	x As Double, _
	y As Double _
)

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 noteImportant 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft