本文整理匯總了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