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

#### 函数功能

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


#### 约束说明

入参width/height必须为偶数。


#### 函数原型

int32_t ResetImgSize(uint32_t width, uint32_t height) = 0


#### 参数说明

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


#### 返回值说明

数据类型：int32_t

取值如下：

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