I have got a question..
I have scanned an image from the Twain source with the following vfp code :
Code: Select all
oGdPicture.TwainOpenSource(thisform.tsources.Value)
oGdPicture.TwainSetHideUI(.T.)
oGdPicture.TwainSetCurrentResolution(200)
oGdPicture.TwainSetCurrentPixelType(2)
oGdPicture.TwainSetCurrentBitDepth(8 )
oGdPicture.TwainSetPaperSize(1) && A4 format
lImageId=oGdPicture.CreateImageFromTwain()
IF lImageId != 0
oGdPicture.SetNativeImage(lImageId)
oGdPicture.SaveAsTiff ("c:\testtwain3.tif", 2, 0) && works OK
oGdPicture.SaveAsTiff ("c:\testtwain3.tif", 2, 8 ) && Does NOT Work
ENDIF
oGdPicture.SaveAsTiff ("c:\testtwain3.tif", 2, 8 )
This function does NOT work, I get a file with size = 1Kb and is empty
So the third parameter (in this case 8 ) does not work ???
Hope you can help ?
Regards,
Leo