Converts RBG color from a set of red, green, and blue color components to HSL color into a set of hue, saturation and lightness components.
public ColorRGBtoHSL( Byte RedValue, Byte GreenValue, Byte BlueValue, ref Single HueReturn, ref Single SaturationReturn, ref Single LightnessReturn );
Public Sub ColorRGBtoHSL( ByVal RedValue As Byte, ByVal GreenValue As Byte, ByVal BlueValue As Byte, ByRef HueReturn As Single, ByRef SaturationReturn As Single, ByRef LightnessReturn As Single )
|
Parameters |
Description |
|
RedValue |
Input red component value [0 - 255]. |
|
GreenValue |
Input green component value [0 - 255]. |
|
BlueValue |
Input blue component value [0 - 255]. |
|
HueReturn |
Output parameter. Hue component value [-1 ; 5]. |
|
SaturationReturn |
Output parameter. Saturation component value [0 ; 1]. |
|
LightnessReturn |
Output parameter. Lightness component value [0 ; 1]. |
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|