---
title: ResetImgSize
description: "根据抓图图层尺寸，设置保存的图像尺寸。设置后需重启GPU Turbo生效。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/armnative/kunpengcpsvideo_16_0131.html
sourcePath: /source/zh/kunpengboostkithistory/2530/armnative/kunpengcpsvideo_16_0131.html
indexId: ac4a6a3ee582ef98f07f09878ed1df98562caf44eff9713e4b2b4658771bea0177
---
# ResetImgSize

#### 函数功能

根据抓图图层尺寸，设置保存的图像尺寸。设置后需重启GPU Turbo生效。


#### 约束说明

入参width/height必须为偶数。


#### 函数原型

int32_t ResetImgSize(uint32_t width, uint32_t height) = 0


#### 参数说明

| 字段名称 | 输入/输出 | 字段类型 | 字段描述 |
| --- | --- | --- | --- |
| width | 输入 | uint32\_t | 要设置的图像宽度（单位为像素，必须为偶数） |
| height | 输入 | uint32\_t | 要设置的图像高度（单位为像素，必须为偶数） |


#### 返回值说明

数据类型：int32_t

取值如下：

- 0：设置图像尺寸成功。
- 其他：设置图像尺寸失败。
