Version

CombineRgbColors(Color,Decimal,Color,Decimal) Method

Blends the specified colors into a single color, using the specified percentages for each color.
Syntax
'Declaration
 
Public Overloads Shared Function CombineRgbColors( _
   ByVal color1 As Color, _
   ByVal percent1 As Decimal, _
   ByVal color2 As Color, _
   ByVal percent2 As Decimal _
) As Color
public static Color CombineRgbColors( 
   Color color1,
   decimal percent1,
   Color color2,
   decimal percent2
)

Parameters

color1
The first System.Drawing.Color to use.
percent1
The percentage of color1 to use.
color2
The second System.Drawing.Color to use.
percent2
The percentage of color2 to use.

Return Value

A color based on the specified parameters.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also