Color.FromNonPremultiplied Method (Microsoft.Xna.Framework)
Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha.
- 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.ColorA Color which contains premultiplied alpha data.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web