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

# XFrontPanelGetScreenPixelFormat

> XFrontPanelGetScreenPixelFormat

Gets the pixel format of the front panel display.

## Syntax

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

### Parameters

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

Pointer to a value indicating the pixel format.

### Return value

Type: HRESULT

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

## 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](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md) 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).

## Requirements

**Header:** xfrontpaneldisplay.h

**Library:** xfrontpaneldisplay.lib

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

## See also

[XFrontPanelDisplay](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)


## Related topics

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