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

# XFrontPanelGetScreenDimensions

> XFrontPanelGetScreenDimensions

# XFrontPanelGetScreenDimensions

取得前面板顯示器的尺寸。

## 語法

```cpp theme={null}
HRESULT XFrontPanelGetScreenDimensions(  
         uint32_t* height,  
         uint32_t* width  
)  
```

### 參數

*height*   \_Out\_\
類型：uint32\_t\*

值的指標，指出前面板顯示器的高度 (以像素為單位)。

*width*   \_Out\_\
類型：uint32\_t\*

值的指標，指出前面板顯示器的寬度 (以像素為單位)。

### 傳回值

類型：HRESULT

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

## 備註

對於目前的開發套件，傳回的尺寸一律為寬 256 像素、高 64 像素。

若要判斷此開發套件是否具有前面板顯示器，請使用 [XFrontPanelIsSupported](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)。

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

## 需求

**標頭：** xfrontpaneldisplay.h

**程式庫：** xfrontpaneldisplay.lib

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

## 另請參閱

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


## Related topics

- [XFrontPanelIsSupported](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
- [XFrontPanelPresentBuffer](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelDisplay (API 內容)](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetScreenPixelFormat](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat.md)
- [XFrontPanelLight](https://docs.xbox.com/zh-TW/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
