> ## 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](/zh-TW/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot) 的選項旗標。

## 需求

**標頭：** XAppCapture.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

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


## Related topics

- [XAppCaptureScreenshotFormatFlag](/reference/system/xappcapture/enums/xappcapturescreenshotformatflag.md)
- [XAppCaptureTakeScreenshotResult](/reference/system/xappcapture/structs/xappcapturetakescreenshotresult.md)
- [XAppCaptureOpenScreenshotStream](/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md)
- [XAppCaptureTakeDiagnosticScreenshot](/zh-CN/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md)
