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

# XFrontPanelGetScreenDimensions

> XFrontPanelGetScreenDimensions

# XFrontPanelGetScreenDimensions

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

<a id="syntaxSection" />

## 語法

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

<a id="parametersSection" />

### 參數

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

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

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

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

<a id="retvalSection" />

### 傳回值

類型：HRESULT

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

<a id="remarksSection" />

## 備註

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

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

如需詳細資訊，請參閱 [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

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