Performs gamma correction on a 8-, 24- or 32-bit image.
Namespace:
FreeImageAPI
Assembly:
FreeImageNET (in FreeImageNET.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function AdjustGamma ( _
dib As FIBITMAP, _
gamma As Double _
) As Boolean |
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