Color.FromNonPremultiplied Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Converts a non-premultipled alpha color to a color that contains premultiplied alpha.
Namespace:  Microsoft.Xna.Framework
Assembly:  Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)
Syntax
'Declaration
Public Shared Function FromNonPremultiplied ( _
    r As Integer, _
    g As Integer, _
    b As Integer, _
    a As Integer _
) As Color
public static Color FromNonPremultiplied(
    int r,
    int g,
    int b,
    int a
)
Parameters
- r
 Type: System.Int32
 Red component.
- g
 Type: System.Int32
 Green component.
- b
 Type: System.Int32
 Blue component.
- a
 Type: System.Int32
 Alpha component.
Return Value
Type: Microsoft.Xna.Framework.Color
A four-component color that contains premultiplied alpha.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.