Board index » cppbuilder » Twain input from camera or scanner?

Twain input from camera or scanner?

How do I obtain graphics from a twain device such as a digital camera
or scanner?

thanks

 

Re:Twain input from camera or scanner?


Hi!

There is a quite easy way to get a picture from twain:

You can build and install the active-x-controll "kodak-image-scan" and put
that into your project. It saves the scanned picture to a file and You can
take that file then.

All You have to code, looks like this:
 ImgScanProxy1->Image="C:\\test.bmp";
 ImgScanProxy1->OpenScanner();
 ImgScanProxy1->StartScan();
 ImgScanProxy1->CloseScanner();
 Image1->Picture->Bitmap->LoadFromFile("C:\\test.bmp");

Good luck

Michael

Other Threads