---
title: GetFormat
description: "获取Image对象的图片类型。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0719.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0719.html
indexId: b4507dfccfaf0f6e3fb55a0582c118dfd5d916e16174e8a3c3db28470e328ecd102
---
# GetFormat

#### 函数功能

获取Image对象的图片类型。


#### 函数原型

```
ImageFormat GetFormat() const;
```


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| ImageFormat | 返回图片的类型，具体请参见ImageFormat。 |
