Table of Contents

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

Color

Properties

A

public byte A { get; }

Property Value

byte

B

public byte B { get; }

Property Value

byte

Black

public static Color Black { get; }

Property Value

Color

Blue

public static Color Blue { get; }

Property Value

Color

G

public byte G { get; }

Property Value

byte

Gray

public static Color Gray { get; }

Property Value

Color

Green

public static Color Green { get; }

Property Value

Color

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Purple

public static Color Purple { get; }

Property Value

Color

R

public byte R { get; }

Property Value

byte

Red

public static Color Red { get; }

Property Value

Color

Teal

public static Color Teal { get; }

Property Value

Color

Transparent

public static Color Transparent { get; }

Property Value

Color

White

public static Color White { get; }

Property Value

Color

Yellow

public static Color Yellow { get; }

Property Value

Color

Methods

Convert(byte[], byte[], ColorFormat)

public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat)

Parameters

inArray byte[]
outArray byte[]
colorFormat Color.ColorFormat

Convert(byte[], byte[], ColorFormat, RgbFormat)

public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat, Color.RgbFormat rgbFormat)

Parameters

inArray byte[]
outArray byte[]
colorFormat Color.ColorFormat
rgbFormat Color.RgbFormat

Convert(byte[], byte[], ColorFormat, RgbFormat, byte)

public static void Convert(byte[] inArray, byte[] outArray, Color.ColorFormat colorFormat, Color.RgbFormat rgbFormat, byte alpha)

Parameters

inArray byte[]
outArray byte[]
colorFormat Color.ColorFormat
rgbFormat Color.RgbFormat
alpha byte

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

inArray byte[]
outArray byte[]
colorFormat Color.ColorFormat
rgbFormat Color.RgbFormat
alpha byte
colorTable byte[]

ConvertTo1Bpp(byte[], byte[], uint)

public static void ConvertTo1Bpp(byte[] inArray, byte[] outArray, uint width)

Parameters

inArray byte[]
outArray byte[]
width uint

ConvertTo1Bpp(byte[], byte[], uint, BitFormat)

public static void ConvertTo1Bpp(byte[] inArray, byte[] outArray, uint width, Color.BitFormat bitFormat)

Parameters

inArray byte[]
outArray byte[]
width uint
bitFormat Color.BitFormat

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

FromArgb(int)

public static Color FromArgb(int argb)

Parameters

argb int

Returns

Color

FromArgb(int, Color)

public static Color FromArgb(int alpha, Color baseColor)

Parameters

alpha int
baseColor Color

Returns

Color

FromArgb(int, int, int)

public static Color FromArgb(int red, int green, int blue)

Parameters

red int
green int
blue int

Returns

Color

FromArgb(int, int, int, int)

public static Color FromArgb(int alpha, int red, int green, int blue)

Parameters

alpha int
red int
green int
blue int

Returns

Color

GetBrightness()

public float GetBrightness()

Returns

float

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

float

GetSaturation()

public float GetSaturation()

Returns

float

ToArgb()

public int ToArgb()

Returns

int

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

left Color
right Color

Returns

bool

operator !=(Color, Color)

public static bool operator !=(Color left, Color right)

Parameters

left Color
right Color

Returns

bool