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

XNA Game Studio 4.0
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)

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.

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

Community Additions

ADD
Show: