Glossary Item Box

ImageMan DLL Suite Version 8 Submit feedback on this topic   

ScanLowSetScanArea

void IMAPI ScanLowSetScanArea (hJob, left, top, right, bottom)

This low level function specifies the area of the image to be captured.

 

Parameter

Type

Description

hJob

HTWAINJOB

Handle to a TWAIN job returned from ScanLowInitTwainJob.

left

float

Specifies the left edge of the image area to acquire.

top

float

Specifies the top edge of the image area to acquire.

right

float

Specifies the right edge of the image area to acquire.

bottom

float

Specifies the bottom edge of the image area to acquire.

 

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 values for the left, top, right and bottom parameters are specified in inches. If the device cannot restrict the scanning area or doesn't support the capability it will return a normally sized image.

Example

#include  imtwain.h

HTWAINJOB hJob;

if( ScanIsTwainAvailable() ) {

hJob = ScanLowInitTwainJob( hWnd );

if( hJob ) {

// Set the scan area to 1,1 to 2.5,2.5

ScanLowSetScanArea( hJob, 1, 1, 2.5, 2.5 );

// Ok to call other low level scanning functions

ScanLowCloseJob(hJob);

} else

...

 

 


Copyright 2008 Data Techniques, Inc. All Rights Reserved