This example shows a simple Delphi application to acquire an image from a TWAIN device (scanner or webcam), display the image and save it to disk.
Install TwainControlX, then extract the Delphi demo files from tcx_demo_delphi.zip to a single directory. Import the OCX control TwainControlX into Delphi.