Accusoft.ImagXpress13.Net
AdjustColorBalance Method




An integer value which represents the color to balance.

The range is 0 - 100.

0 indicates no correction of the image.

Values greater than zero increase the amount of correction performed.

An integer which represents the red color of the auto color balance algorithm result.

0 indicates no change to the red component of the image. (Red component will be the same as in the original image.)

Values less than zero decrease the red component of the image.

Values greater than zero increase the red component of the image.

An integer which represents the green color of the auto color balance algorithm result.

0 indicates no change to the green component of the image. (Green component will be the same as in the original image.)

Values less than zero decrease the green component of the image.

Values greater than zero increase the green component of the image.

An integer which represents the blue color of the auto color balance algorithm result.

0 indicates no change to the blue component of the image. (Blue component will be the same as in the original image.)

Values less than zero decrease the blue component of the image.

Values greater than zero increase the blue component of the image.

Overrides the default parameters when auto color balancing the image.
Syntax
'Declaration
 
Public Sub AdjustColorBalance( _
   ByVal color As Short, _
   ByVal red As Short, _
   ByVal green As Short, _
   ByVal blue As Short _
) 
'Usage
 
Dim instance As Processor
Dim color As Short
Dim red As Short
Dim green As Short
Dim blue As Short
 
instance.AdjustColorBalance(color, red, green, blue)
public void AdjustColorBalance( 
   short color,
   short red,
   short green,
   short blue
)
public: void AdjustColorBalance( 
   short color,
   short red,
   short green,
   short blue
) 
public:
void AdjustColorBalance( 
   short color,
   short red,
   short green,
   short blue
) 

Parameters

color

An integer value which represents the color to balance.

The range is 0 - 100.

0 indicates no correction of the image.

Values greater than zero increase the amount of correction performed.

red

An integer which represents the red color of the auto color balance algorithm result.

0 indicates no change to the red component of the image. (Red component will be the same as in the original image.)

Values less than zero decrease the red component of the image.

Values greater than zero increase the red component of the image.

green

An integer which represents the green color of the auto color balance algorithm result.

0 indicates no change to the green component of the image. (Green component will be the same as in the original image.)

Values less than zero decrease the green component of the image.

Values greater than zero increase the green component of the image.

blue

An integer which represents the blue color of the auto color balance algorithm result.

0 indicates no change to the blue component of the image. (Blue component will be the same as in the original image.)

Values less than zero decrease the blue component of the image.

Values greater than zero increase the blue component of the image.

Remarks

This method applies the same algorithm as the AutoColorBalance method to automatically balance color in the image, but enables the user to override the default parameters of the algorithm.

Since pixel values must fall within the range of 0 - 255, resulting pixel values less than 0 are set to 0 and resulting pixel values greater than 255 are set to 255.

Note: Available in Professional edition.

See Also

Reference

Processor Class
Processor Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback