Share via


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

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.