Performs gamma correction on a 8-, 24- or 32-bit image.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public bool AdjustGamma(
	double gamma
)
Visual Basic (Declaration)
Public Function AdjustGamma ( _
	gamma As Double _
) As Boolean
Visual C++
public:
bool AdjustGamma(
	double gamma
)

Parameters

gamma
Type: System..::.Double
The parameter represents the gamma value to use (gamma > 0). A value of 1.0 leaves the image alone, less than one darkens it, and greater than one lightens it.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also