ICSetContrast(3mms) — Subroutines
Name
ICSetContrast --- Set current contrast value
Syntax
#include <mme/mme_api.h>
MMRESULT ICSetContrast(HIC hic,
DWORD dwContrast);
Arguments
HIC hic
Specifies a handle to a compressor or decompressor.
DWORD dwContrast
Specifies the contrast value. This value ranges from 0 to 10,000.
Description
The ICSetContrast function sets the current contrast value. This function is only valid when decompressing an image into 8-bit X image format.
Extensions
The ICSetContrast function is a Digital extension to the Microsoft multimedia API specification.
Return Values
Returns ICERR_OK if the function is successful; otherwise, it returns one of the following error codes:
ICERR_BADHANDLE@T{ The hic argument is invalid or the compressor or decompressor is not open. T} ICERR_BADPARAM@T{ The value of the dwContrast argument is out of range. T} ICERR_CANTUPDATE@T{ The attribute cannot be modified. T} ICERR_UNSUPPORTED@T{ The function is not supported. T}