生成具有以下规范的任意具体化: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
)
参数
- displayName
类型:System.String
- backgroundColor
类型:System.Drawing.Color
- avatarSizeInPixels
类型:System.Int32
- avatarImageFormat
类型:Microsoft.TeamFoundation.Framework.Server.AvatarImageFormat
返回值
类型:array<System.Byte[]
为生成的图像字节
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。