---
title: hi_rect
description: 定义矩形宽高和左上角坐标。
url: "https://www.hiascend.com/document/detail/zh/canncommercial/900/API/dvpp/aclcppdevg_03_0799.html"
---

# hi_rect

#### 说明

定义矩形宽高和左上角坐标。


#### 定义

```
typedef struct {
hi_s32
x;
hi_s32
y;
hi_u32
width;
hi_u32
height;
} hi_rect;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| x | 左上角x轴。 |
| y | 左上角y轴。 |
| width | 矩形宽度。 |
| height | 矩形高度。 |
