Support Center

Compress scanned document using the ImTwain

Christy Odeen Nov 09, 2011 02:13PM EST

We need to be able to compress the tif that gets scanned. Right now I have this code without any error but it does not seem to do anything:
(The ActiveX control has been named ImScan)

retval = ImScan.NegotiateCapability(Capabilities.Compression, 1)

Is this coded correctly? If not how should it be coded? If it is why is the file size the same whether I have this line or not?

Thank you.

1 Data Techniques Response

Up 0 Rated Down
DTI Support  Data Techniques Employee Nov 09, 2011 02:18PM EST

Hello Christy,

The image will be compressed when you use the SaveAs method to save the image to disk. Set the compression property to the type of compression you want to get in your output tif file. The capability has no effect on the image when its saved as you have noticed.

Thanks for your interest in our products and please let us know if you have any questions.

Data Techniques Support

This question is closed to new answers.

Contact Us