FreeImage.AdjustGamma Method

FreeImage.NET

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

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool AdjustGamma(
	FIBITMAP dib,
	double gamma
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
gamma
Type: SystemDouble
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

Type: Boolean
Returns true on success, false on failure.
See Also