I'm using the "tiff SDK/Activex" and i have this problem: i want to scan an image and save it in the tiff format and jpeg compression but i can't be able to do this. The code that i have used is this:
Sub TwainCtrl_Done(hDibOutput,FileOutput)
dim retval
BiDisp.hDib=hDibOutput
retval=TiffObj.SaveDIBInTiffFormat("c:\pippo.tif",hDibOutput,imgcmNoComp,True)
alert(retval)
end Sub
so i view a user interface where i can set the compression type for the tiff file, when i set "no compression" or "differential LZW" it save the image and retval is equal to TRUE but if i set "jpeg compression" it don't save the image and retval is FALSE; why? I have scanned a coloured image with a resolution of 24 bit.
Another question: How can i set the "Quality jpeg" and "Resolution jpeg" properties for the jpeg compression in the tiff format? With the "Kodak Imaging" i can set this properties.
Thanks, Nunzio
