Color.FromNonPremultiplied Method (Int32, Int32, Int32, Int32)
Converts a non-premultipled alpha color to a color that contains premultiplied alpha.
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
)
public:
static Color FromNonPremultiplied(
int r,
int g,
int b,
int a
)
Parameters
- r
Type: Int32
Red component. - g
Type: Int32
Green component. - b
Type: Int32
Blue component. - a
Type: Int32
Alpha component.
Return Value
Type: Color
A four-component color.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Color Structure
Color Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone