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

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

Syntax

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

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
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