ColorHSLtoRGB Method (GdPictureImaging)
In This Topic
Converts the required HSL color, which is composed of a set of specified hue, saturation and lightness color components
to the RGB color composed of a set of resulting red, green and blue components.
Syntax
'Declaration
Public Sub ColorHSLtoRGB( _
ByVal As Single, _
ByVal As Single, _
ByVal As Single, _
ByRef As Byte, _
ByRef As Byte, _
ByRef As Byte _
)
public void ColorHSLtoRGB(
float ,
float ,
float ,
ref byte ,
ref byte ,
ref byte
)
public procedure ColorHSLtoRGB(
: Single;
: Single;
: Single;
var : Byte;
var : Byte;
var : Byte
);
public function ColorHSLtoRGB(
: float,
: float,
: float,
: byte,
: byte,
: byte
);
public: void ColorHSLtoRGB(
float ,
float ,
float ,
ref byte ,
ref byte ,
ref byte
)
public:
void ColorHSLtoRGB(
float ,
float ,
float ,
byte% ,
byte% ,
byte%
)
Parameters
- Hue
- The input value for the hue component. Use the value between -1 and 5.
- Saturation
- The input value for the saturation component. Use the value between 0 and 1.
- Lightness
- The input value for the lightness component. Use the value between 0 and 1.
- Red
- Output parameter. The resulting value for the red component between 0 and 255.
- Green
- Output parameter. The resulting value for the green component between 0 and 255.
- Blue
- Output parameter. The resulting value for the blue component between 0 and 255.
See Also