> ## 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\_\
Type: DXGI\_FORMAT\*

ピクセル形式を示す値へのポインター。

<a id="retvalSection" />

### 戻り値

Type: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。

<a id="remarksSection" />

## 解説

このメソッドが返すピクセル形式は `DXGI_FORMAT_R8_UNORM` です。ディスプレイは 1 ピクセルあたり 4 ビットのみをサポートし、下位 4 ビットは使用されません。

このピクセル形式は、[XFrontPanelPresentBuffer](/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](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelPresentBuffer](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelDisplay](/ja-jp/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetScreenDimensions](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreendimensions.md)
- [XFrontPanelIsSupported](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
- [XFrontPanelGetButtonStates](/ja-jp/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates.md)
