| Herd Software Development
|=
DaVinci Graphics Library
|==
DaVinci Documentation Home Search Order


Leonardo: Example for unattended scaning

   // Set the scan resolution to 200 DPI
   TWAINSetResolution(TwainAccessHandle, 200, 0);

   // Set the Rectangle to be scanned
   {
     RECT rc;
     SetRect(&rc, 1440, 1440, 1440*3, 1440*3);	// In TWIPS
     TWAINSetRect(TwainAccessHandle, &rc, 0);
   }

   // Aquire an image
   TWAINAquireExt(TwainAccessHandle, FALSE, TWAIN_COLOR_BW);

   /* If an image is to arrive it will be sent by an UWM_TWAINIMAGERECEIVED Message to the hwFrame as
      registered by the call to TWAINInitialize in WinMain */