Color Structure |
Namespace: Eto.Drawing
The Color type exposes the following members.
Name | Description | |
---|---|---|
Color(Color, NullableSingle) |
Initializes a new instance of the Color object as a copy of the specified color | |
Color(Single, Single, Single, Single) |
Initializes a new instance of the Color object with the specified red, green, blue, and alpha components
| |
Color(Object, Single, Single, Single, Single) |
Initializes a new instance of the Color struct with the specified native control object.
|
Name | Description | |
---|---|---|
A |
Gets or sets the alpha/opacity (0-1)
| |
Ab |
Gets or sets the alpha/opacity component as a byte of a 32-bit color (0-255)
| |
B |
Gets or sets the blue (0-1)
| |
Bb |
Gets or sets the blue component as a byte of a 32-bit color (0-255)
| |
ControlObject |
Gets the native color control object.
| |
G |
Gets or sets the green (0-1)
| |
Gb |
Gets or sets the green component as a byte of a 32-bit color (0-255)
| |
R |
Gets or sets the red component (0-1)
| |
Rb |
Gets or sets the red component as a byte of a 32-bit color (0-255)
|
Name | Description | |
---|---|---|
Blend(Color, Color) |
Blends the blendColor onto the specified baseColor. Uses alpha component of blendColor
to detemine the blending factor.
| |
Blend(Color, Color, Single) |
Blends the blendColor onto the specified baseColor. Ignores the alpha component and uses
the provided blend factor.
| |
Distance |
Calculates the distance of the two colors in the RGB scale
| |
Equals(Object) |
Tests if the specified object has the same value as this Color
(Overrides ValueTypeEquals(Object).) | |
Equals(Color) |
Compares the specified color for equality
| |
FromArgb(Int32) |
Creates a Color from a 32-bit ARGB value
| |
FromArgb(Int32, Int32, Int32, Int32) |
Creates a color from 8-bit ARGB components
| |
FromElementId |
Creates a new color from an Element ID value
| |
FromGrayscale |
Creates a Color with a specified value for the Red, Green, and Blue components
| |
FromRgb |
Creates a Color from a 24-bit RGB value
| |
GetHashCode |
Gets the hash code for this Color
(Overrides ValueTypeGetHashCode.) | |
Invert |
Inverts the RGB color values
| |
Parse |
Converts a string into a new instance of a Color
| |
ToArgb |
Converts this color to a 32-bit ARGB value.
| |
ToCMYK |
Converts this RGB color to the CMYK colorspace.
| |
ToElementId |
Converts this color to an Element ID value
| |
ToHex |
Converts this color to a hex representation
| |
ToHSB |
Converts this RGB color to the HSB colorspace.
| |
ToHSL |
Converts this RGB color to the HSL colorspace.
| |
ToString |
Converts this object to a string
(Overrides ValueTypeToString.) | |
TryParse |
Converts the specified string to a color
|
Name | Description | |
---|---|---|
Equality |
Compares two Color structs for equality
| |
Inequality |
Compares two Color structs for inequality
|