FreeImage.AdjustContrast Method

FreeImage.NET

FreeImageAdjustContrast Method
Adjusts the contrast of a 8-, 24- or 32-bit image by a certain amount.

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

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
percentage
Type: SystemDouble
A value 0 means no change, less than 0 will decrease the contrast and greater than 0 will increase the contrast of the image.

Return Value

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