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_ShowRect

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    BOOL NET_SDK_ShowRect(
        POINTERHANDLE lPlayHandle,
        int x1,
        int x2,
        int y1,
        int y2);

    1
    2
    3
    4
    5
    6
    public static extern bool NET_SDK_ShowRect(
        POINTERHANDLE lPlayHandle,
        int x1,
        int x2,
        int y1,
        int y2);

### Function Description

(Only supported on Windows) Display a rectangular frame.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lPlayHandlein | POINTERHANDLE | The preview handle, which is the return value of `NET_SDK_LivePlay` or `NET_SDK_LivePlayEx`.
x1in | int | The x-coordinate of the upper-left corner of the rectangle.
x2in | int | The x-coordinate of the lower-right corner of the rectangle.
y1in | int | The y-coordinate of the upper-left corner of the rectangle.
y2in | int | The y-coordinate of the lower-right corner of the rectangle.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code