本文整理匯總了VB.NET中System.Windows.Media.Color.FromValues方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET Color.FromValues方法的具體用法?VB.NET Color.FromValues怎麽用?VB.NET Color.FromValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。
在下文中一共展示了Color.FromValues方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: FromValuesExample
Private Function FromValuesExample() As Color
' Create a brown color using the FromValues static method.
Dim myValuesColor 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 myIccUri As New Uri("C:\sampleColorProfile.icc")
' The values given by the first parameter are used with the color
' profile specified by the second parameter to determine the color.
myValuesColor = Color.FromValues(colorValues, myIccUri)
Return myValuesColor
End Function