SetBrightness

#include "BiTwain.h"

 

int CALLBACK twSetBrightness(int brightness)

Description

This function specifies the value of brightness of the scanner.

Important:      Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the brightness value set by this function.

Parameters

int

contrast

Brightness value.

Return values

Return TW_OK on success or an error code on failure.

Return TW_INVALIDPARAMETER if the resx parameter is invalid for the scanner.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.