Table of Contents

Class Color

Namespace
Geotab.Drawing
Assembly
Geotab.Checkmate.ObjectModel.dll

Specifies the color to use to identify the Group, Rule, SecurityClearance or Zone.

public class Color
Inheritance
Color
Inherited Members

Constructors

Color(int, bool)

Initializes a new instance of the Color class.

public Color(int rgba, bool hasAlpha)

Parameters

rgba int

The rgba.

hasAlpha bool

if set to true if the color has alpha.

Color(int, int, int, int)

Initializes a new instance of the Color class.

public Color(int r, int g, int b, int a = 255)

Parameters

r int

The red.

g int

The green.

b int

The blue.

a int

The alpha.

Fields

Black

The black color (RGB values 0, 0, 0).

public static readonly Color Black

Field Value

Color

int

Blue

The blue color (RGB values 0, 0, 255).

public static readonly Color Blue

Field Value

Color

int

Empty

The empty color space (RGB values 0, 0, 0).

public static readonly Color Empty

Field Value

Color

int

Green

The green color (RGB values 0, 255, 0).

public static readonly Color Green

Field Value

Color

int

Red

The red color (RGB values 255, 0, 0).

public static readonly Color Red

Field Value

Color

int

White

The white color (RGB values 255, 255, 255).

public static readonly Color White

Field Value

Color

int

Properties

A

Gets returns the alpha component of the color space (opacity) in the range 0-255.

public int A { get; }

Property Value

int

int

B

Gets returns the blue component of the color space in the range 0-255 from the default sRGB space.

public int B { get; }

Property Value

int

int

G

Gets returns the green component of the color space in the range 0-255 from the default sRGB. space.

public int G { get; }

Property Value

int

int

R

Gets returns the red component of the color space in the range 0-255 from the default sRGB. space.

public int R { get; }

Property Value

int

int

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToArgb()

Return the int value of the alpha, red, green and blue value of the color.

public int ToArgb()

Returns

int

int

ToString()

public override string ToString()

Returns

string