---
title: hi_rect
description: "定义矩形宽高和左上角坐标"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0033.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0033.html
indexId: 21113c03381f806d4a192c3395936adc1d80f6014cedd8506310362d7723adb665
---
# hi_rect

#### 说明

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


#### 定义

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


#### 成员

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