Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ColorKeyRequest.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core.Mathematics;
4 
5 namespace SiliconStudio.TextureConverter.Requests
6 {
7  /// <summary>
8  /// Request to premultiply the alpha on the texture
9  /// </summary>
10  class ColorKeyRequest : IRequest
11  {
12  public override RequestType Type { get { return RequestType.ColorKey; } }
13 
14  /// <summary>
15  /// Gets or sets the color key.
16  /// </summary>
17  /// <value>The color key.</value>
18  public Color ColorKey { get; private set; }
19 
20  /// <summary>
21  /// Initializes a new instance of the <see cref="ColorKeyRequest"/> class.
22  /// </summary>
23  public ColorKeyRequest(Color colorKey)
24  {
25  this.ColorKey = colorKey;
26  }
27  }
28 }
Represents a 32-bit color (4 bytes) in the form of RGBA (in byte order: R, G, B, A).
Definition: Color.cs:16
Request to premultiply the alpha on the texture
ColorKeyRequest(Color colorKey)
Initializes a new instance of the ColorKeyRequest class.