> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XAppCaptureScreenshotFormatFlag

> XAppCaptureScreenshotFormatFlag

# XAppCaptureScreenshotFormatFlag

确定屏幕截图的清晰度质量。

## 语法

```cpp theme={null}
enum class XAppCaptureScreenshotFormatFlag  : uint16_t  
{  
    SDR = 1,  
    HDR = 2  
}  
```

## 常量

| 常量  | 说明                  |
| --- | ------------------- |
| SDR | 设置此标志将以 SDR 捕获屏幕截图。 |
| HDR | 设置此标志将以 HDR 捕获屏幕截图。 |

## 备注

您可以设置这两个标志中的一个或全部两个来指定屏幕截图的捕获格式。如果同时设置了这两个标志，则会得到两次不同的截图。只有当游戏运行于 HDR 时，才能设置 HDR 标志。

此枚举表示 [XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot) 的选项标志。

## 要求

**头文件：** XAppCapture.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[GameDVR 概览](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture 成员](/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot)


## Related topics

- [XAppCaptureTakeDiagnosticScreenshot](/zh-CN/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md)
- [XAppCaptureTakeScreenshotResult](/zh-CN/reference/system/xappcapture/structs/xappcapturetakescreenshotresult.md)
- [XAppCaptureOpenScreenshotStream](/zh-CN/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md)
- [XAppCapture](/zh-CN/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureScreenshotStream](/zh-CN/reference/system/xappcapture/structs/xappcapturescreenshotstream.md)
