public struct ColorType
{
public byte b;
public byte g;
public byte r;
public byte a;
public ColorType(byte r, byte g, byte b)
{
this.r = r;
this.g = g;
this.b = b;
this.a = 255;
}
public ColorType(Color c)
{
this.r = c.R;
this.g = c.G;
this.b = c.B;
this.a = c.A;
}
}
System.Drawing.Color
Microsoft.DirectX.Direct3D.ColorOperator
ColorOperator Class
--------------------------------------------------------------------------------
Contains methods for manipulating colors.
Definition
Visual Basic NotInheritable Public Class ColorOperator
Inherits Object
C# public sealed class ColorOperator : Object
Managed C++ public __gc __sealed class ColorOperator : public Object
JScript public class ColorOperator extends Object
Members Table
The following table lists the members exposed by the ColorOperator object.
Add - Adds two color values together to create a new color value.
AdjustContrast - Adjusts the contrast value of a color.
AdjustSaturation - Adjusts the saturation value of a color.
Lerp - Uses linear interpolation to create a color value.
Modulate - Blends two colors.
Negative - Creates the negative color value of a color value.
Scale - Scales a color value.
Subtract - Subtracts two color values to create a new color value.