Gets the current contrast value for the specified bitmap. This value is set by the L_SetPaintContrast function.
#include "l_bitmap.h"
L_LTDIS_API L_INT L_GetPaintContrast(pBitmap)
Pointer to the bitmap handle that references the bitmap from which to retrieve the contrast value. This cannot be NULL.
The current contrast setting. Possible values are -1000 to +1000.
Win32, x64, Linux.
This example gets the current paint settings, and then updates the bitmap to reflect those values.
L_INT GetPaintContrastExample(pBITMAPHANDLE pBitmap){L_INT nRet;L_INT nContrast;L_UINT uGamma;L_INT nIntensity;/* Get the values */nContrast = L_GetPaintContrast(pBitmap);uGamma = L_GetPaintGamma(pBitmap);nIntensity = L_GetPaintIntensity(pBitmap);/* Update the bitmap */nRet = L_ChangeBitmapContrast(pBitmap, nContrast, 0);if (nRet != SUCCESS)return nRet;nRet = L_GammaCorrectBitmap(pBitmap, uGamma, 0);if (nRet != SUCCESS)return nRet;nRet = L_ChangeBitmapIntensity(pBitmap, nIntensity, 0);return nRet;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
