struct Color

Parents

System.ValueType

Brief

The structure describes a color in terms of red, green, blue, and alpha components.

Static Public Properties

Black

The system-defined black color.

Blue

The system-defined blue color.

Gray

The system-defined gray color.

Green

The system-defined green color.

None

No color.

Red

The system defined red color.

White

The system-defined white color.

Yellow

The system-defined yellow color.

Static Public Methods

FromHtml

Translates an HTML color representation to a Color structure.

FromRgba

Creates a Color structure from the four RGBA components (red, green, blue and alpha) 0.0 - 1.0 values.

FromRgba

Creates a Color structure from the four RGBA components (red, green, blue and alpha) 0.0 - 1.0 values.

op_Equality

Checks whether two Color structures are equal.

op_Inequality

Checks whether two Color structures are not equal.

Public Properties

A

The alpha component value of the color.

B

The blue component value of the color.

G

The green component value of the color.

IsTransparent

Indicates whether the color is transparent.

R

The red component value of the color.

Public Constructors

Color

A constructor.

Public Methods

Equals

Checks whether the current object is equal to another object of the same type.

Equals

Checks whether the specified object is a Color structure equivalent to this Color structure.

GetHashCode

Gets a hash code for this Color structure.

ToFloatValues

Deconstructs a Color structure to float variables.

back