HSBColor Structure
Provides conversion from RGB to HSB color and back.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Public Structure HSBColor
'Usage
Dim instance As HSBColor
public struct HSBColor
public value class HSBColor
[<SealedAttribute>]
type HSBColor = struct end
JScript suports the use of structures, but not the declaration of new ones.
The HSBColor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HSBColor(Color) | Initializes a new instance of the HSBColor class with the specified color parameter. | |
HSBColor(Single, Single, Single) | Initializes a new instance of the HSBColor class with the specified hue, staturation, and brightness parameters. | |
HSBColor(Int32, Single, Single, Single) | Initializes a new instance of the HSBColor class with the specified alpha, hue, saturation, and brightness parameters. |
Top
Properties
Name | Description | |
---|---|---|
A | Gets the value of the color assigned to Alpha. | |
B | Gets the hue-saturation-brightness (HSB) value for this Color structure. | |
Color | Gets the color profile of the color. | |
H | Gets the hue-saturation-brightness (HSB) hue value in degrees for this Color structure. | |
S | Gets the hue-saturation-brightness (HSB) saturation value for this Color structure. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from ValueType.) | |
Finalize | (Inherited from Object.) | |
FromColor | Initializes a new instance of a Color structure using a HSBColor value. | |
FromHSB | Creates a new color based on the specified hue, saturation, and brightness values. | |
GetHashCode | (Inherited from ValueType.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ShiftBrighness | Represents the changed brightness value of the HSBColor. | |
ShiftHue | Represents the changed hue value of the HSBColor. | |
ShiftSaturation | Represents the changed hue value of the HSBColor. | |
ToString | (Inherited from ValueType.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.