Struct Color
- Namespace
- GHIElectronics.Endpoint.Drawing
- Assembly
- GHIElectronics.Endpoint.Drawing.dll
[Serializable]
public struct Color
- Inherited Members
Fields
Empty
public static readonly Color Empty
Field Value
Properties
A
public byte A { get; }
Property Value
B
public byte B { get; }
Property Value
Black
public static Color Black { get; }
Property Value
Blue
public static Color Blue { get; }
Property Value
G
public byte G { get; }
Property Value
Gray
public static Color Gray { get; }
Property Value
Green
public static Color Green { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
Name
public string Name { get; }
Property Value
Purple
public static Color Purple { get; }
Property Value
R
public byte R { get; }
Property Value
Red
public static Color Red { get; }
Property Value
Teal
public static Color Teal { get; }
Property Value
Transparent
public static Color Transparent { get; }
Property Value
White
public static Color White { get; }
Property Value
Yellow
public static Color Yellow { get; }
Property Value
Methods
Convert(byte[], byte[], ColorFormat)
public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat)
Parameters
inArraybyte[]outArraybyte[]colorFormatColor.ColorFormat
Convert(byte[], byte[], ColorFormat, RgbFormat)
public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat, Color.RgbFormat rgbFormat)
Parameters
Convert(byte[], byte[], ColorFormat, RgbFormat, byte)
public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat, Color.RgbFormat rgbFormat, byte alpha)
Parameters
Convert(byte[], byte[], ColorFormat, RgbFormat, byte, byte[])
public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat, Color.RgbFormat rgbFormat, byte alpha, byte[] colorTable)
Parameters
inArraybyte[]outArraybyte[]colorFormatColor.ColorFormatrgbFormatColor.RgbFormatalphabytecolorTablebyte[]
ConvertTo1Bpp(byte[], byte[], uint)
public static void ConvertTo1Bpp(byte[] inArray, byte[] outArray, uint width)
Parameters
ConvertTo1Bpp(byte[], byte[], uint, BitFormat)
public static void ConvertTo1Bpp(byte[] inArray, byte[] outArray, uint width, Color.BitFormat bitFormat)
Parameters
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
FromArgb(int)
public static Color FromArgb(int argb)
Parameters
argbint
Returns
FromArgb(int, Color)
public static Color FromArgb(int alpha, Color baseColor)
Parameters
Returns
FromArgb(int, int, int)
public static Color FromArgb(int red, int green, int blue)
Parameters
Returns
FromArgb(int, int, int, int)
public static Color FromArgb(int alpha, int red, int green, int blue)
Parameters
Returns
GetBrightness()
public float GetBrightness()
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetHue()
public float GetHue()
Returns
GetSaturation()
public float GetSaturation()
Returns
ToArgb()
public int ToArgb()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(Color, Color)
public static bool operator ==(Color left, Color right)
Parameters
Returns
operator !=(Color, Color)
public static bool operator !=(Color left, Color right)