AvatarUtils.GenerateAvatar 方法

生成具有以下规范的任意具体化:i. 背景:纯色 (已选择通过循环为从预定义的调色板) ii。 前景:显示名称的前两个初始在白色的

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Shared Function GenerateAvatar ( _
    displayName As String, _
    backgroundColor As Color, _
    avatarSizeInPixels As Integer, _
    avatarImageFormat As AvatarImageFormat _
) As Byte()
public static byte[] GenerateAvatar(
    string displayName,
    Color backgroundColor,
    int avatarSizeInPixels,
    AvatarImageFormat avatarImageFormat
)

参数

返回值

类型:array<System.Byte[]
为生成的图像字节

.NET Framework 安全性

请参阅

参考

AvatarUtils 类

Microsoft.TeamFoundation.Framework.Server 命名空间