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

Gets the pixel format of the front panel display.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*pixelFormat*   \_Out\_\
Type: DXGI\_FORMAT\*

Pointer to a value indicating the pixel format.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an error code.

<a id="remarksSection" />

## Remarks

The pixel format returned by this method is `DXGI_FORMAT_R8_UNORM`. The display supports only 4 bits per pixel; the lower four bits aren't used.

Use the pixel format to construct the buffer for the [XFrontPanelPresentBuffer](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer) function.

For more information, see [XBOX One X: Using the front panel display (NDA topic)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel).

<a id="requirementsSection" />

## Requirements

**Header:** xfrontpaneldisplay.h

**Library:** xfrontpaneldisplay.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelPresentBuffer](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetScreenDimensions](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreendimensions.md)
- [View and manipulate the console's front panel (wdpanel.exe)](/tools/tools-console/console_commandlinetools/wdpanel.md)
- [XFrontPanelIsSupported](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
