ChartDirector 6.2 (.NET Edition)
public int adjustBrightness(int c, double brightness);
Public Function adjustBrightness(c As Integer, brightness As Double) As Integer
Creates a color that is a darkened or brightened version of the given color.
A brightness less than 1 means the color is darkened, while a brightness greater than 1 means the color is brightened. For example, a brightness of 0.5 means the color is half as bright as the original color. If the original color is red, the color will become dark red. Conversely, a brightness of 2 means the color is twice as bright as the original color. If the original color is red, the color will become light red.
|c||(Mandatory)||The given color.|
|brightness||(Mandatory)||A non-negative number represent the factor to darken or brighten the color.
A 32-bit integer representing the darkened or brightened color.
© 2017 Advanced Software Engineering Limited. All rights reserved.