Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_FishEyeAdjustFocusEx

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_FishEyeAdjustFocusEx(
        POINTERHANDLE lPlayHandle,
        int nX,
        int nY,
        int& nIndex);

    1
    2
    3
    4
    5
    public static extern Boolean NET_SDK_FishEyeAdjustFocusEx(
        POINTERHANDLE lPlayHandle,
        Int32 nX,
        Int32 nY,
        ref int nIndex);

### Function Description

(Windows only) Sets the focus to determine which segment of the fisheye correction the current operation is applied to.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lPlayHandlein | POINTERHANDLE | The preview handle, which is the return value of `NET_SDK_LivePlay` or `NET_SDK_LivePlayEx`.
nXin | int | The X coordinate value of the current focus, relative to the current playback window coordinate system.
nYin | int | The Y coordinate value of the current focus, relative to the current playback window coordinate system.
nIndexin | int& | The focus index.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code