> ## 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.

# XFrontPanelGetScreenPixelFormat

> XFrontPanelGetScreenPixelFormat

# XFrontPanelGetScreenPixelFormat

取得前面板顯示器的像素格式。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XFrontPanelGetScreenPixelFormat(  
         DXGI_FORMAT* pixelFormat  
)  
```

<a id="parametersSection" />

### 參數

*pixelFormat*   \_Out\_\
類型：DXGI\_FORMAT\*

值的指標，指出像素格式。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

如果成功，會傳回 `S_OK`；否則會傳回錯誤碼。

<a id="remarksSection" />

## 備註

此方法傳回的像素格式為 `DXGI_FORMAT_R8_UNORM`。顯示器僅支援每像素 4 位元；較低的四個位元不會使用。

請使用此像素格式來建構 [XFrontPanelPresentBuffer](/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer) 函式的緩衝區。

如需詳細資訊，請參閱 [XBOX One X：使用前面板顯示器 (NDA 主題)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel)。

<a id="requirementsSection" />

## 需求

**標頭：** xfrontpaneldisplay.h

**程式庫：** xfrontpaneldisplay.lib

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

<a id="seealsoSection" />

## 另請參閱

[XFrontPanelDisplay](/zh-TW/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelGetScreenPixelFormat](/ko/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat.md)
- [XFrontPanelPresentBuffer](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
