本文整理汇总了VB.NET中System.Windows.Media.Color.FromAValues方法的典型用法代码示例。如果您正苦于以下问题:VB.NET Color.FromAValues方法的具体用法?VB.NET Color.FromAValues怎么用?VB.NET Color.FromAValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。
在下文中一共展示了Color.FromAValues方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: FromAValuesExample
Private Function FromAValuesExample() As Color
' Create a brown color using the FromAValues static method.
Dim myAValuesColor As New Color()
Dim colorValues(3) As Single
colorValues(0) = 0.0f
colorValues(1) = 0.5f
colorValues(2) = 0.5f
colorValues(3) = 0.5f
' Uri to sample color profile. This color profile is used to
' determine what the colors the colorValues map to.
Dim iccUri As New Uri("C:\sampleColorProfile.icc")
' The FromAValues method requires an explicit value for alpha
' (first parameter). The values given by the second parameter are
' used with the color profile specified by the third parameter to
' determine the color.
myAValuesColor = Color.FromAValues(1.0f, colorValues, iccUri)
Return myAValuesColor
End Function