Skip to main content

XUserGamerPictureSize

以像素为单位指定玩家头像的大小。

Syntax

Constants

Remarks

若要异步检索用户的玩家头像,请调用 XUserGetGamerPictureAsync 函数。 XUserGetGamerPictureAsync 函数将 XUserGamerPictureSize 枚举用作参数。 XUserGetGamerPictureResult 函数检索 XUserGetGamerPictureAsync 函数返回的结果。 以下示例演示了如何加载玩家头像。

Requirements

头文件: XUser.h 受支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机

See also

XUser XUserGetGamerPictureAsync XUserGetGamerPictureResult
最后修改于 2026年8月24日