COLORBALANCING
C++ Builder Syntax:
Typdef struct
{
L_DOUBLE toRed;
L_DOUBLE toGreen;
L_DOUBLE toBlue;
} COLORBALANCING
Delphi Syntax:
COLORBALANCING = Packed Record
toRed : L_DOUBLE;
toGreen: L_DOUBLE;
toBlue: L_DOUBLE;
end;
The COLORBALANCING Record (structure) provides color-balancing information to the BalanceColors method.
Member |
Description |
toRed |
Value that represents the percentage of the red color value that should be distributed to the red component. Possible values are 0.0 to 1.0. |
toGreen |
Value that represents the percentage of the green color value that should be distributed to the green component. Possible values are 0.0 to 1.0. |
toBlue |
Value that represents the percentage of the blue color value that should be distributed to the blue component. Possible values are 0.0 to 1.0. |
Comments
If a COLORBALANCING Record (structure) used to redistribute the red value of a pixel contains the following values:
toRed = 0.50toGreen = 0.50toBlue = 0.0
then 50% of the current red value of the pixel will be added to the new red value for the pixel and 50% of the current red value of the pixel will be added to the new green value for the pixel. For a more detailed description of how this works, refer to BalanceColors method.