Userobjectpbwtwain

Library :     C:\D\PBWLibrarys\Testpbd\pb_image.pbl
Date:          30/10/2004 7.34.31
Comment: 


Specifications, notes, comments on pbwtwain
//TWAIN

This object is a wrapper for TWAIN interface.
You can use this in scanning process.

Features:
1)Acquire Images
2)Store images in blobs
3)Save images in files


Formats supported: BMP,GIF,JPEG,TIFF


SCAN PROCESS GUIDE:
1)Initialize (TW_INIT)
2)Acquire (TW_ACQUIRE) this starts acquisitin process
3)The ecent twe_acquire is fired at the end of scan process. You have to
  handle the acquired images in this event.
4)Save images using TW_SAVEAS function

Attention: tmp_file is used by the object to save images. You can change the default path value
THIS SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT WARRANTIES 




Functions:
tw_acquireStarts TWAIN scan process.
tw_closeCloses TWAIN interface.
tw_getpicGet scanned image
public function long tw_getpics ()public function long tw_getpics ()
tw_init Inizialize TWAIN interface.
tw_savepicsSaves previous scanned images in a file (open SaveAs windows dialog)
tw_savepicsaspublic subroutine tw_savepicsas (string filename, integer i)
tw_selectsourceOpens dialog to select twain source

Events:
resizeevent resize
twe_acquireevent twe_acquire
constructorevent constructor
destructorevent destructor