Directory Contents Search Print << >>


Leonardo: Beispiel für unbeaufsichtigtes Scannen

// 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 */

→ Probleme mit TWAIN - Implementierungen

→ Funktion TWAINInitialize

→ Funktion TWAINAquireExt

→ Funktion TWAINSetResolution

→ Funktion TWAINSetRect

→ Funktion TWAINCallDS

→ Funktion TWAINIsDSMOpen