Glossary Item Box
This low level function specifies the resolution in DPI to be used when scanning.
|
Parameter |
Type |
Description |
|
hJob |
HTWAINJOB |
Handle to a TWAIN job returned from ScanLowInitTwainJob. |
|
nResolution |
WORD |
Specifies the Resolution in DPI. |
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. If the resolution is not specified by calling this function then the device default or user selection will be used.
Example
#include imtwain.h
HTWAINJOB hJob;
if( ScanIsTwainAvailable() ) {
hJob = ScanLowInitTwainJob( hWnd );
if( hJob ) {
// Set the resolution to 75 DPI
ScanLowSetResolution( hJob, 75 );
// Ok to call other low level scanning functions
ScanLowCloseJob(hJob);
} else
// Scanning Failed!
}
Copyright 2008 Data Techniques, Inc. All Rights Reserved