BALANCING

Summary

The BALANCING structure provides color balancing information.

Syntax

typedef struct _BALANCING 
{ 
   L_UINT uStructSize; 
   L_DOUBLE toRed; 
   L_DOUBLE toGreen; 
   L_DOUBLE toBlue; 
} BALANCING, *pBALANCING; 

Members

uStructSize

Size of this structure in bytes. Use sizeof() operator to calculate this value.

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 BALANCING structure used to redistribute the red value of a pixel contains the following values:

toRed = 0.50
toGreen = 0.50
toBlue = 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 LBitmap::BalanceColors.

Usage

Data Types

Functions

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.