L_GetPaintContrast

#include "l_bitmap.h"

L_INT EXT_FUNCTION L_GetPaintContrast(pBitmap)

pBITMAPHANDLE pBitmap;

/* pointer to the bitmap handle */

Gets the current contrast value for the specified bitmap. This value is set by the L_SetPaintContrast function.

Parameter

Description

pBitmap

Pointer to the bitmap handle that references the bitmap from which to retrieve the contrast value. This cannot be NULL.

Returns

The current contrast setting. Possible values are -1000 to +1000.

Required DLLs and Libraries

LTDIS

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Windows 95 / 98 / Me, Windows 2000 / XP, Windows CE.

See Also

Functions:

L_SetPaintContrast, L_GetPaintGamma, L_SetPaintGamma, L_GetPaintIntensity, L_SetPaintIntensity

Topics:

Raster Image Functions: Displaying Images

Example

L_VOID TestFunc(pBITMAPHANDLE pBitmap)
{
   /* This example gets the current paint settings, and then */
   /* updates the bitmap to reflect those values */
   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 */
   L_ChangeBitmapContrast(pBitmap, nContrast);
   L_GammaCorrectBitmap(pBitmap, uGamma);
   L_ChangeBitmapIntensity(pBitmap, nIntensity);
}