Share via


Color.FromNonPremultiplied Method (Int32, Int32, Int32, Int32)

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

public static Color FromNonPremultiplied (
         int r,
         int g,
         int b,
         int a
)

Parameters

  • r
    Red component.
  • g
    Green component.
  • b
    Blue component.
  • a
    Alpha component.

Return Value

A four-component color.

See Also

Reference

Color Structure
Color Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7