HSL states Hue-Saturation-Lightness, which is also called HSV, Hue-Saturation-Value model, or HSB, Hue-Saturation-Brightness, and HSB is used in PhotoShoop. HSL model is originally a hexagonal cone as follows:
The vertical axis is the Value (Lightness) in the range 0..1 The angle is the Hue in the range 0..360 The relative radius is the Saturation in the range 0..1 In HSL color space, Hue is measured by an angle with Red starting at 0 degrees, Green at 120 degrees and Blue at 240 degrees. Complementary colors are in-between: Yellow is at 60 degrees, Cyan is at 180 degrees, and Magenta is at 300 degrees. The black line in the diagram at the lower left on the screen shows the hue angle. Saturation, S, is a ratio that ranges from 0.0 along the center line of the cone (the V axis) to 1 on the edge of the cone. The gray circle above in the diagram at the lower left of the screen shows the position of the saturation value. The colors along this saturation circle are shown in the color box above the hue trackbar. The colors along the saturation radius are shown in the color box above the saturation trackbar. Value (Lightness), V (L), ranges from 0.0 (dark) to 1.0 (bright). An example of corresponding HSL to RGB (red-green-blue) Color is as the following table:
In PhotoController V2.0, a filter class HSLAdjustFilter is offered to perform the HSL color adjustment. But the parameter range is a little different. HSLAdjustFilter accepts the HSL difference as the parameter to perform the adjustment. So the actual accepted parameters are:
The following figures demonstrate the results after HSL adjustment:
Hue = 180
Hue = -60 Saturation = -0.2
Hue = 60 Saturation = 0.1 |
|
Send comments about this topic.
|
|
Copyright (c) 2006-2007 @ ImageComponent.NET All rights reserved.
|