I'm using TWAIN functions to aquire pictures from a Fujitsu fi-5750C document scanner, and I have the following questions:
1. I want to save the pictures into JPG if they are coloured, and I want to save them into TIF if they are BW. (duplex mode = True)
If the front side and the back side are differents (Automatic Color Detection = True), how can I get their properties (TwainGetCurrentBitDepth, TwainGetCurrentPixelType) during scanning?
At the moment I only get the back side's propreties.
2. Is it possible to set the Automatic Color Detection = True/False (this is a VRS propertie) from a VB6 program?
- Code: Select all
Imaging1.TwainSelectFeeder (True)
Imaging1.TwainEnableDuplex (True)
Imaging1.TwainSetCapCurrentNumeric(ICAP_ORIENTATION, Imaging1.TwainGetCapItemType(ICAP_ORIENTATION), 3)
Imaging1.TwainSetCurrentPixelType(2)
Imaging1.TwainSetCurrentResolution (300)
Do While Imaging1.CreateImageFromTwain(Me.hwnd) <> 0
Debug.Print Imaging1.TwainGetCurrentBitDepth
Debug.Print Imaging1.TwainGetCurrentPixelType
'.......
Loop
Thank you in advance.
Best regards
Irab
