Adjusts an image's brightness, contrast and gamma as well as it may
optionally invert the image within a single operation.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public bool AdjustColors( double brightness, double contrast, double gamma, bool invert ) |
Visual Basic (Declaration) |
---|
Public Function AdjustColors ( _ brightness As Double, _ contrast As Double, _ gamma As Double, _ invert As Boolean _ ) As Boolean |
Visual C++ |
---|
public: bool AdjustColors( double brightness, double contrast, double gamma, bool invert ) |
Parameters
- brightness
- Type: System..::.Double
Percentage brightness value where -100 <= brightness <= 100.A value of 0 means no change, less than 0 will make the image darker and greater than 0 will make the image brighter.
- contrast
- Type: System..::.Double
Percentage contrast value where -100 <= contrast <= 100.A value of 0 means no change, less than 0 will decrease the contrast and greater than 0 will increase the contrast of the image.
- gamma
- Type: System..::.Double
Gamma value to be used for gamma correction.A value of 1.0 leaves the image alone, less than one darkens it, and greater than one lightens it.
This parameter must not be zero or smaller than zero. If so, it will be ignored and no gamma correction will be performed on the image.
- invert
- Type: System..::.Boolean
If set to true, the image will be inverted.