LIsis::Acquire

#include "Ltwrappr.h"

virtual L_INT LIsis::Acquire(uFlags=0)

L_UINT uFlags;

/* option flags */

Loads the associated bitmap object with a scanned image from the currently loaded ISIS scanner driver.

This function is available in the Document/Medical Toolkits.

Parameter

Description

uFlags

Option flags. Possible values are:

 

Value

Meaning

 

ISIS_SHOWUI

[0x0001] Enable the ISIS user interface.

 

NULL

[0x0000] Do not show user interface.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

If uFlags is not set, the ISIS user interface will not be activated and the function will only scan the image, using the current scanner driver tags.

Required DLLs and Libraries

LTISI

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LIsis::AcquireMulti, LIsis::AcquireMultiCallBack, LTwain::Acquire, Class Members

Topics:

Raster Image Functions: Scanning Images using ISIS,

 

Using ISIS to Scan Images

Example

L_INT MyFunction(HWND hWnd, LBitmapBase *pBitmap)
{
   LIsis   MyIsis ;
   L_CHAR      szDriverName[255];
   memset(szDriverName,0,sizeof(szDriverName));
   
   if (MyIsis.IsAvailable() != TRUE)
   {
      MessageBox( hWnd, "Isis is not available", "Isis Error", MB_OK) ;
      return FAILURE ;
   }

   MyIsis.Select(szDriverName) ;

   if (MyIsis.LoadDriver(szDriverName) == SUCCESS)
   {
      MyIsis.SetBitmap(pBitmap) ;
      MyIsis.Acquire(ISIS_SHOWUI) ;
   }

   MyIsis.UnloadDriver() ;

   return SUCCESS ;
}