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.341)
  • C#
  • VB
  • F#
public static Color FromNonPremultiplied(
	Vector4 vector
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

vector
Type: Microsoft.Xna.Framework.Vector4
A Vector4 representing color.

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