Click or drag to resize

ColorHSB Structure

Color representation in HSB color model

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public struct ColorHSB : IEquatable<ColorHSB>

The ColorHSB type exposes the following members.

Constructors
  NameDescription
Public methodColorHSB(Color)
Initializes a new instance of the ColorHSB class with the same color values as color
Public methodColorHSB(Single, Single, Single, Single)
Initializes a new instance of the ColorHSB class
Top
Properties
  NameDescription
Public propertyA
Gets or sets the alpha (0-1)
Public propertyB
Gets or sets the brightness (0-1)
Public propertyH
Gets or sets the hue (0-360)
Public propertyS
Gets or sets the saturation (0-1)
Top
Methods
  NameDescription
Public methodStatic memberDistance
Calculates the 'distance' of two HSB colors
Public methodEquals(Object)
Compares an object to determine equality with this instance
(Overrides ValueTypeEquals(Object).)
Public methodEquals(ColorHSB)
Compares a ColorHSB for equality
Public methodGetHashCode
Gets the hash code for this object
(Overrides ValueTypeGetHashCode.)
Public methodToColor
Converts this instance to an equivalent RGB Color
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two instances of the ColorHSB for equality
Public operatorStatic member(Color to ColorHSB)
Implicitly converts from a Color to a ColorHSB
Public operatorStatic member(ColorHSB to Color)
Implicitly converts from a ColorHSB to a Color
Public operatorStatic memberInequality
Compares two instances of the ColorHSB for inequality
Top
Remarks
This allows you to manage a color in the HSB (otherwise known as HSV) cylindrical model. This is a helper class to handle HSB colors. Whenever a color is used it must be converted to a Color struct first, either by using ToColor or the implicit conversion.
See Also