Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

ScanLowSetBrightnessContrast

void IMAPI ScanLowSetBrightnessContrast (hJob, WORD nBrightness, nContrast)

This low level function specifies the Brightness and Contrast settings to be used when scanning.

 

Parameter

Type

Description

hJob

HTWAINJOB

Handle to a TWAIN job returned from ScanLowInitTwainJob.

nBrightness

WORD

Specifies the brightness setting to be used.

nContrast

WORD

Specifies the Contrast setting to be used.

 

Return Value

This function does not return a value.

Comments

This function only needs to be called when using the low level scanning functions and must be called prior to calling ScanLowAcquirePages.

 

The allowable values for the nBrightness and nContrast parameters are -1000 to 1000. A value of zero sets the device to its default setting. A value of 1000 specifies the highest setting while a value of -1000 specifies the lowest setting.

Example

#include  imtwain.h

HTWAINJOB hJob;

if( ScanIsTwainAvailable() ) {

hJob = ScanLowInitTwainJob( hWnd );

if( hJob ) {

// Set the brightness to the darkest setting

// while setting contrast to the brightest setting

ScanLowSetBrightnessContrast( hJob, -1000, 1000 );

// Ok to call other low level scanning functions

ScanLowCloseJob(hJob);

} else

// Scanning Failed!

}

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved