Share via


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
Public method HSBColor(Color) Initializes a new instance of the HSBColor class with the specified color parameter.
Public method HSBColor(Single, Single, Single) Initializes a new instance of the HSBColor class with the specified hue, staturation, and brightness parameters.
Public method 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
Public property A Gets the value of the color assigned to Alpha.
Public property B Gets the hue-saturation-brightness (HSB) value for this Color structure.
Public property Color Gets the color profile of the color.
Public property H Gets the hue-saturation-brightness (HSB) hue value in degrees for this Color structure.
Public property S Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.

Top

Methods

  Name Description
Public method Equals (Inherited from ValueType.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromColor Initializes a new instance of a Color structure using a HSBColor value.
Public methodStatic member FromHSB Creates a new color based on the specified hue, saturation, and brightness values.
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member ShiftBrighness Represents the changed brightness value of the HSBColor.
Public methodStatic member ShiftHue Represents the changed hue value of the HSBColor.
Public methodStatic member ShiftSaturation Represents the changed hue value of the HSBColor.
Public method 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.