Color.FromNonPremultiplied Method (Microsoft.Xna.Framework)

Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static Color FromNonPremultiplied(
	int r, 
	int g, 
	int b, 
	int a
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

r
Type: System.Int32
Red component value.
g
Type: System.Int32
Green component value.
b
Type: System.Int32
Blue component value.
a
Type: System.Int32
Alpha component value.

Return Value

Type: Microsoft.Xna.Framework.Color
A Color which contains premultiplied alpha data.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web